summaryrefslogtreecommitdiff
path: root/test/storage/cache_response.cpp
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 /test/storage/cache_response.cpp
parent36581f3d3015d525db92248004e9dc7477705694 (diff)
downloadqtlocation-mapboxgl-1caf89c32b80dc300b1fd349a2ece4557890c727.tar.gz
[core] Pass a value to response callback, not a reference
Diffstat (limited to 'test/storage/cache_response.cpp')
-rw-r--r--test/storage/cache_response.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/storage/cache_response.cpp b/test/storage/cache_response.cpp
index 306abc9f01..fb745d9ad4 100644
--- a/test/storage/cache_response.cpp
+++ b/test/storage/cache_response.cpp
@@ -21,7 +21,7 @@ TEST_F(Storage, CacheResponse) {
Request* req1 = nullptr;
Request* req2 = nullptr;
- req1 = fs.request(resource, [&](const Response &res) {
+ req1 = fs.request(resource, [&](Response res) {
fs.cancel(req1);
EXPECT_EQ(nullptr, res.error);
EXPECT_EQ(false, res.stale);
@@ -34,7 +34,7 @@ TEST_F(Storage, CacheResponse) {
// Now test that we get the same values as in the previous request. If we'd go to the server
// again, we'd get different values.
- req2 = fs.request(resource, [&](const Response &res2) {
+ req2 = fs.request(resource, [&](Response res2) {
fs.cancel(req2);
EXPECT_EQ(response.error, res2.error);
EXPECT_EQ(response.stale, res2.stale);