summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-23 17:41:33 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-09-25 18:59:07 +0300
commitc7bbd5bbef0780df5d0a5498e14051ee63c24e44 (patch)
tree4d1803a26e86327b404dc810709b7ea1c0a9453d /test
parent3c23f6f9f7f92ef43cb3d78e5570976058cf49c5 (diff)
downloadqtlocation-mapboxgl-c7bbd5bbef0780df5d0a5498e14051ee63c24e44.tar.gz
[core] Fix performance-move-const-arg
Diffstat (limited to 'test')
-rw-r--r--test/storage/default_file_source.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/storage/default_file_source.test.cpp b/test/storage/default_file_source.test.cpp
index 8853b3dd13..05912e241e 100644
--- a/test/storage/default_file_source.test.cpp
+++ b/test/storage/default_file_source.test.cpp
@@ -528,11 +528,11 @@ TEST(DefaultFileSource, TEST_REQUIRES_SERVER(SetResourceTransform)) {
DefaultFileSource fs(":memory:", ".");
// Translates the URL "localhost://test to http://127.0.0.1:3000/test
- Actor<ResourceTransform> transform(loop, [](Resource::Kind, const std::string&& url) -> std::string {
+ Actor<ResourceTransform> transform(loop, [](Resource::Kind, const std::string& url) -> std::string {
if (url == "localhost://test") {
return "http://127.0.0.1:3000/test";
} else {
- return std::move(url);
+ return url;
}
});