summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/file_source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-11-12 17:12:19 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-16 12:25:47 -0800
commit1caf89c32b80dc300b1fd349a2ece4557890c727 (patch)
tree21d66457063e8bcbf44b7604299dec7a6ac90f7f /include/mbgl/storage/file_source.hpp
parent36581f3d3015d525db92248004e9dc7477705694 (diff)
downloadqtlocation-mapboxgl-1caf89c32b80dc300b1fd349a2ece4557890c727.tar.gz
[core] Pass a value to response callback, not a reference
Diffstat (limited to 'include/mbgl/storage/file_source.hpp')
-rw-r--r--include/mbgl/storage/file_source.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp
index a53bf31c2c..0bb5c0fcaf 100644
--- a/include/mbgl/storage/file_source.hpp
+++ b/include/mbgl/storage/file_source.hpp
@@ -20,7 +20,7 @@ protected:
public:
virtual ~FileSource() = default;
- using Callback = std::function<void(const Response &)>;
+ using Callback = std::function<void (Response)>;
// These can be called from any thread. The callback will be invoked in the loop.
// You can only cancel a request from the same thread it was created in.