summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-23 14:48:30 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-26 14:55:49 -0700
commitf34ba23d85c2b034458363c8b3b7f2995a7ea09e (patch)
tree0b556f1241a60b1c22a467eabf25f816b0bf9a49
parentf30765254807bedab0873a289a118906ef74b754 (diff)
downloadqtlocation-mapboxgl-f34ba23d85c2b034458363c8b3b7f2995a7ea09e.tar.gz
[core] Avoid some copies
-rw-r--r--platform/default/online_file_source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/online_file_source.cpp b/platform/default/online_file_source.cpp
index 00c66f004d..4f191f6cf7 100644
--- a/platform/default/online_file_source.cpp
+++ b/platform/default/online_file_source.cpp
@@ -193,7 +193,7 @@ std::unique_ptr<AsyncRequest> OnlineFileSource::request(const Resource& resource
break;
}
- return std::make_unique<OnlineFileRequest>(res, callback, *impl);
+ return std::make_unique<OnlineFileRequest>(std::move(res), std::move(callback), *impl);
}
OnlineFileRequest::OnlineFileRequest(Resource resource_, Callback callback_, OnlineFileSource::Impl& impl_)