diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-24 17:15:37 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-25 13:15:09 +0200 |
commit | 067ff28d0ac5c35c399069457051e53f900696a0 (patch) | |
tree | 8b5f1e885739f7c269e64d46287e3a1833e300f9 /include | |
parent | ee5be6dff1b106afa43fac6d714a40446144b667 (diff) | |
download | qtlocation-mapboxgl-067ff28d0ac5c35c399069457051e53f900696a0.tar.gz |
[core] ResoureOptions explicit copy via clone()
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map_options.hpp | 3 | ||||
-rw-r--r-- | include/mbgl/storage/resource_options.hpp | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/mbgl/map/map_options.hpp b/include/mbgl/map/map_options.hpp index b5dc2930c9..617a2d793a 100644 --- a/include/mbgl/map/map_options.hpp +++ b/include/mbgl/map/map_options.hpp @@ -17,8 +17,7 @@ public: MapOptions(); ~MapOptions(); - MapOptions(MapOptions&&); - explicit MapOptions(const MapOptions&); + MapOptions(MapOptions&&) noexcept; /** * @brief Sets the map rendering mode. By default, it is set to Continuous diff --git a/include/mbgl/storage/resource_options.hpp b/include/mbgl/storage/resource_options.hpp index e8a56920e0..6d603b8cca 100644 --- a/include/mbgl/storage/resource_options.hpp +++ b/include/mbgl/storage/resource_options.hpp @@ -16,8 +16,9 @@ public: ResourceOptions(); ~ResourceOptions(); - ResourceOptions(ResourceOptions&&); - explicit ResourceOptions(const ResourceOptions&); + ResourceOptions(ResourceOptions&&) noexcept; + + ResourceOptions clone() const; /** * @brief Sets the Mapbox access token - see https://docs.mapbox.com/help/how-mapbox-works/access-tokens/ for details. @@ -112,6 +113,8 @@ public: void* platformContext() const; private: + ResourceOptions(const ResourceOptions&); + class Impl; std::unique_ptr<Impl> impl_; }; |