summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-12-01 16:45:39 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-12-03 15:38:36 +0100
commitdc620f48de48d500298044d8da0ba946b3b0c566 (patch)
tree60110336706627dea9f18821f5d8fc6e9713210a /test/fixtures
parente12cd6aef4858b09c8ca449e779a58d15e878932 (diff)
downloadqtlocation-mapboxgl-dc620f48de48d500298044d8da0ba946b3b0c566.tar.gz
[core] Fix std::move() misuse that disables copy elision
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/mock_file_source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixtures/mock_file_source.cpp b/test/fixtures/mock_file_source.cpp
index 021ddfa8df..7b4ca82e04 100644
--- a/test/fixtures/mock_file_source.cpp
+++ b/test/fixtures/mock_file_source.cpp
@@ -67,7 +67,7 @@ void MockFileSource::Impl::replyWithSuccess(Resource resource, Callback callback
Response res;
try {
- res.data = std::make_shared<const std::string>(std::move(util::read_file(resource.url)));
+ res.data = std::make_shared<const std::string>(util::read_file(resource.url));
} catch (const std::exception& err) {
res.error = std::make_unique<Response::Error>(Response::Error::Reason::Other, err.what());
}
@@ -103,7 +103,7 @@ void MockFileSource::Impl::replyWithCorruptedData(Resource resource, Callback ca
}
Response res;
- auto data = std::make_shared<std::string>(std::move(util::read_file(resource.url)));
+ auto data = std::make_shared<std::string>(util::read_file(resource.url));
data->insert(0, "CORRUPTED");
res.data = std::move(data);
callback(res);