summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-07-13 15:15:50 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-07-14 16:48:34 +0300
commit2aad2f4e14ab762847141788e725d50e1ee44ace (patch)
tree5f814850425b8bc0908a2c9de04916c1f85e22e1 /include
parent7d8b4dc6c0714aa43a85a56ea32fa5590dd843e6 (diff)
downloadqtlocation-mapboxgl-2aad2f4e14ab762847141788e725d50e1ee44ace.tar.gz
Pass {Duration,TimePoint} by const ref if possible
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index c6d5e1475d..d31d6a2757 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -79,8 +79,8 @@ public:
void setClasses(const std::vector<std::string>&);
std::vector<std::string> getClasses() const;
- void setDefaultTransitionDuration(Duration = Duration::zero());
- Duration getDefaultTransitionDuration();
+ void setDefaultTransitionDuration(const Duration& = Duration::zero());
+ Duration getDefaultTransitionDuration() const;
void setStyleURL(const std::string& url);
void setStyleJSON(const std::string& json, const std::string& base = "");
std::string getStyleURL() const;
@@ -91,27 +91,27 @@ public:
void setGestureInProgress(bool);
// Position
- void moveBy(double dx, double dy, Duration = Duration::zero());
- void setLatLng(LatLng latLng, Duration = Duration::zero());
+ void moveBy(double dx, double dy, const Duration& = Duration::zero());
+ void setLatLng(LatLng latLng, const Duration& = Duration::zero());
LatLng getLatLng() const;
void resetPosition();
// Scale
- void scaleBy(double ds, double cx = -1, double cy = -1, Duration = Duration::zero());
- void setScale(double scale, double cx = -1, double cy = -1, Duration = Duration::zero());
+ void scaleBy(double ds, double cx = -1, double cy = -1, const Duration& = Duration::zero());
+ void setScale(double scale, double cx = -1, double cy = -1, const Duration& = Duration::zero());
double getScale() const;
- void setZoom(double zoom, Duration = Duration::zero());
+ void setZoom(double zoom, const Duration& = Duration::zero());
double getZoom() const;
- void setLatLngZoom(LatLng latLng, double zoom, Duration = Duration::zero());
- void fitBounds(LatLngBounds bounds, EdgeInsets padding, Duration duration = Duration::zero());
- void fitBounds(AnnotationSegment segment, EdgeInsets padding, Duration duration = Duration::zero());
+ void setLatLngZoom(LatLng latLng, double zoom, const Duration& = Duration::zero());
+ void fitBounds(LatLngBounds bounds, EdgeInsets padding, const Duration& duration = Duration::zero());
+ void fitBounds(AnnotationSegment segment, EdgeInsets padding, const Duration& duration = Duration::zero());
void resetZoom();
double getMinZoom() const;
double getMaxZoom() const;
// Rotation
- void rotateBy(double sx, double sy, double ex, double ey, Duration = Duration::zero());
- void setBearing(double degrees, Duration = Duration::zero());
+ void rotateBy(double sx, double sy, double ex, double ey, const Duration& = Duration::zero());
+ void setBearing(double degrees, const Duration& = Duration::zero());
void setBearing(double degrees, double cx, double cy);
double getBearing() const;
void resetNorth();