summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map_options.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-24 17:15:37 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-25 13:15:09 +0200
commit067ff28d0ac5c35c399069457051e53f900696a0 (patch)
tree8b5f1e885739f7c269e64d46287e3a1833e300f9 /src/mbgl/map/map_options.cpp
parentee5be6dff1b106afa43fac6d714a40446144b667 (diff)
downloadqtlocation-mapboxgl-067ff28d0ac5c35c399069457051e53f900696a0.tar.gz
[core] ResoureOptions explicit copy via clone()
Diffstat (limited to 'src/mbgl/map/map_options.cpp')
-rw-r--r--src/mbgl/map/map_options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/map/map_options.cpp b/src/mbgl/map/map_options.cpp
index d0588a44eb..7c254476d6 100644
--- a/src/mbgl/map/map_options.cpp
+++ b/src/mbgl/map/map_options.cpp
@@ -13,8 +13,7 @@ public:
// These requires the complete type of Impl.
MapOptions::MapOptions() : impl_(std::make_unique<Impl>()) {}
MapOptions::~MapOptions() = default;
-MapOptions::MapOptions(MapOptions&&) = default;
-MapOptions::MapOptions(const MapOptions& other) : impl_(std::make_unique<Impl>(*other.impl_)) {}
+MapOptions::MapOptions(MapOptions&&) noexcept = default;
MapOptions& MapOptions::withMapMode(MapMode mode) {
impl_->mapMode = mode;