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/mbgl/storage | |
parent | ee5be6dff1b106afa43fac6d714a40446144b667 (diff) | |
download | qtlocation-mapboxgl-067ff28d0ac5c35c399069457051e53f900696a0.tar.gz |
[core] ResoureOptions explicit copy via clone()
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/resource_options.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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_; }; |