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-22 22:02:28 +0200 |
commit | 7f734ea31b8b89ce7072ff3aaa305808ed346d1d (patch) | |
tree | eebe292ac36bb09f3ec6d04d54bf45f07945cb40 /include/mbgl/map/map_options.hpp | |
parent | dcd6efd5b5c806c524095500ae1d832765816f47 (diff) | |
download | qtlocation-mapboxgl-upstream/revert-14189-options-unique_ptr.tar.gz |
[core] Fix signature of fluent interface settersupstream/revert-14189-options-unique_ptr
Diffstat (limited to 'include/mbgl/map/map_options.hpp')
-rw-r--r-- | include/mbgl/map/map_options.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mbgl/map/map_options.hpp b/include/mbgl/map/map_options.hpp index 384b113dba..b5dc2930c9 100644 --- a/include/mbgl/map/map_options.hpp +++ b/include/mbgl/map/map_options.hpp @@ -28,7 +28,7 @@ public: * @param mode Map rendering mode. * @return MapOptions for chaining options together. */ - MapOptions withMapMode(MapMode mode); + MapOptions& withMapMode(MapMode mode); /** * @brief Gets the previously set (or default) map mode. @@ -45,7 +45,7 @@ public: * @param mode Map constrain mode. * @return MapOptions for chaining options together. */ - MapOptions withConstrainMode(ConstrainMode mode); + MapOptions& withConstrainMode(ConstrainMode mode); /** * @brief Gets the previously set (or default) constrain mode. @@ -61,7 +61,7 @@ public: * @param mode Viewport mode. * @return MapOptions for chaining options together. */ - MapOptions withViewportMode(ViewportMode mode); + MapOptions& withViewportMode(ViewportMode mode); /** * @brief Gets the previously set (or default) viewport mode. @@ -77,7 +77,7 @@ public: * @param enableCollisions true to enable, false to disable * @return MapOptions for chaining options together. */ - MapOptions withCrossSourceCollisions(bool enableCollisions); + MapOptions& withCrossSourceCollisions(bool enableCollisions); /** * @brief Gets the previously set (or default) crossSourceCollisions value. |