diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-22 21:15:00 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-23 09:12:44 +0200 |
commit | ac6855a4734be099319e4003eff4951074e7fd57 (patch) | |
tree | d6c7a4d73fe221c307d507ced96a7ad29880db92 /include/mbgl/storage | |
parent | 1d7b243a06c6c3d2def4d1989e93e90250e87cad (diff) | |
download | qtlocation-mapboxgl-ac6855a4734be099319e4003eff4951074e7fd57.tar.gz |
[core] Fix signature of fluent interface setters
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/resource_options.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/storage/resource_options.hpp b/include/mbgl/storage/resource_options.hpp index 958392175c..e8a56920e0 100644 --- a/include/mbgl/storage/resource_options.hpp +++ b/include/mbgl/storage/resource_options.hpp @@ -25,7 +25,7 @@ public: * @param token Mapbox access token. * @return ResourceOptions for chaining options together. */ - ResourceOptions withAccessToken(std::string token); + ResourceOptions& withAccessToken(std::string token); /** * @brief Gets the previously set (or default) Mapbox access token. @@ -40,7 +40,7 @@ public: * @param baseURL API base URL. * @return ResourceOptions for chaining options together. */ - ResourceOptions withBaseURL(std::string baseURL); + ResourceOptions& withBaseURL(std::string baseURL); /** * @brief Gets the previously set (or default) API base URL. @@ -55,7 +55,7 @@ public: * @param path Cache path. * @return ResourceOptions for chaining options together. */ - ResourceOptions withCachePath(std::string path); + ResourceOptions& withCachePath(std::string path); /** * @brief Gets the previously set (or default) cache path. @@ -71,7 +71,7 @@ public: * @param path Asset path. * @return ResourceOptions for chaining options together. */ - ResourceOptions withAssetPath(std::string path); + ResourceOptions& withAssetPath(std::string path); /** * @brief Gets the previously set (or default) asset path. @@ -86,7 +86,7 @@ public: * @param size Cache maximum size in bytes. * @return reference to ResourceOptions for chaining options together. */ - ResourceOptions withMaximumCacheSize(uint64_t size); + ResourceOptions& withMaximumCacheSize(uint64_t size); /** * @brief Gets the previously set (or default) maximum allowed cache size. @@ -102,7 +102,7 @@ public: * @param context Platform context. * @return reference to ResourceOptions for chaining options together. */ - ResourceOptions withPlatformContext(void* context); + ResourceOptions& withPlatformContext(void* context); /** * @brief Gets the previously set (or default) platform context. |