summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/geojson_source.cpp
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 /src/mbgl/style/sources/geojson_source.cpp
parent3c23f6f9f7f92ef43cb3d78e5570976058cf49c5 (diff)
downloadqtlocation-mapboxgl-c7bbd5bbef0780df5d0a5498e14051ee63c24e44.tar.gz
[core] Fix performance-move-const-arg
Diffstat (limited to 'src/mbgl/style/sources/geojson_source.cpp')
-rw-r--r--src/mbgl/style/sources/geojson_source.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/sources/geojson_source.cpp b/src/mbgl/style/sources/geojson_source.cpp
index baf76d8224..5171c7c8d9 100644
--- a/src/mbgl/style/sources/geojson_source.cpp
+++ b/src/mbgl/style/sources/geojson_source.cpp
@@ -12,8 +12,7 @@ namespace mbgl {
namespace style {
GeoJSONSource::GeoJSONSource(const std::string& id, optional<GeoJSONOptions> options)
- : Source(makeMutable<Impl>(std::move(id), options)) {
-}
+ : Source(makeMutable<Impl>(id, options)) {}
GeoJSONSource::~GeoJSONSource() = default;
@@ -22,7 +21,7 @@ const GeoJSONSource::Impl& GeoJSONSource::impl() const {
}
void GeoJSONSource::setURL(const std::string& url_) {
- url = std::move(url_);
+ url = url_;
// Signal that the source description needs a reload
if (loaded || req) {