summaryrefslogtreecommitdiff
path: root/include
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
parent36581f3d3015d525db92248004e9dc7477705694 (diff)
downloadqtlocation-mapboxgl-1caf89c32b80dc300b1fd349a2ece4557890c727.tar.gz
[core] Pass a value to response callback, not a reference
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/storage/file_source.hpp2
-rw-r--r--include/mbgl/storage/request.hpp2
2 files changed, 2 insertions, 2 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.
diff --git a/include/mbgl/storage/request.hpp b/include/mbgl/storage/request.hpp
index 1fb15c5a92..0f178af9bb 100644
--- a/include/mbgl/storage/request.hpp
+++ b/include/mbgl/storage/request.hpp
@@ -20,7 +20,7 @@ class Response;
class Request : private util::noncopyable {
public:
- using Callback = std::function<void(const Response &)>;
+ using Callback = std::function<void (Response)>;
Request(const Resource &resource, uv_loop_t *loop, Callback callback);
public: