summaryrefslogtreecommitdiff
path: root/include/mbgl/map/map_options.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-22 21:15:00 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-22 22:02:28 +0200
commit7f734ea31b8b89ce7072ff3aaa305808ed346d1d (patch)
treeeebe292ac36bb09f3ec6d04d54bf45f07945cb40 /include/mbgl/map/map_options.hpp
parentdcd6efd5b5c806c524095500ae1d832765816f47 (diff)
downloadqtlocation-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.hpp8
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.