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/map/map_options.hpp | |
parent | 1d7b243a06c6c3d2def4d1989e93e90250e87cad (diff) | |
download | qtlocation-mapboxgl-ac6855a4734be099319e4003eff4951074e7fd57.tar.gz |
[core] Fix signature of fluent interface setters
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. |