From d15b9c1f9c1afa29175ba2e398adc680e66147e6 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 20 Mar 2020 12:38:09 +0200 Subject: [core] Fix performance-unnecessary-value-param errors As reported by clang-tidy-8. --- include/mbgl/map/map.hpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'include/mbgl/map') diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 62bb39e8c2..9aa0cb165e 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -60,17 +60,26 @@ public: bool isPanning() const; // Camera - CameraOptions getCameraOptions(optional = {}) const; + CameraOptions getCameraOptions(const optional& = {}) const; void jumpTo(const CameraOptions&); void easeTo(const CameraOptions&, const AnimationOptions&); void flyTo(const CameraOptions&, const AnimationOptions&); void moveBy(const ScreenCoordinate&, const AnimationOptions& = {}); - void scaleBy(double scale, optional anchor, const AnimationOptions& animation = {}); + void scaleBy(double scale, const optional& anchor, const AnimationOptions& animation = {}); void pitchBy(double pitch, const AnimationOptions& animation = {}); void rotateBy(const ScreenCoordinate& first, const ScreenCoordinate& second, const AnimationOptions& = {}); - CameraOptions cameraForLatLngBounds(const LatLngBounds&, const EdgeInsets&, optional bearing = {}, optional pitch = {}) const; - CameraOptions cameraForLatLngs(const std::vector&, const EdgeInsets&, optional bearing = {}, optional pitch = {}) const; - CameraOptions cameraForGeometry(const Geometry&, const EdgeInsets&, optional bearing = {}, optional pitch = {}) const; + CameraOptions cameraForLatLngBounds(const LatLngBounds&, + const EdgeInsets&, + const optional& bearing = {}, + const optional& pitch = {}) const; + CameraOptions cameraForLatLngs(const std::vector&, + const EdgeInsets&, + const optional& bearing = {}, + const optional& pitch = {}) const; + CameraOptions cameraForGeometry(const Geometry&, + const EdgeInsets&, + const optional& bearing = {}, + const optional& pitch = {}) const; LatLngBounds latLngBoundsForCamera(const CameraOptions&) const; LatLngBounds latLngBoundsForCameraUnwrapped(const CameraOptions&) const; -- cgit v1.2.1