summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commit46fa69159616860ded192643031f7cb3c10b818b (patch)
tree943a45833a3495b3c498944b9dd6f51f996a2b24 /platform
parent563d4b6cac0076e87bd57e5227e20689c05f44fa (diff)
downloadqtlocation-mapboxgl-46fa69159616860ded192643031f7cb3c10b818b.tar.gz
[core] Fix performance-unnecessary-value-param errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'platform')
-rw-r--r--platform/glfw/glfw_view.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp
index bee8896fa3..73c274e4fc 100644
--- a/platform/glfw/glfw_view.hpp
+++ b/platform/glfw/glfw_view.hpp
@@ -10,6 +10,8 @@
#include <mbgl/style/layers/location_indicator_layer.hpp>
#endif
+#include <utility>
+
struct GLFWwindow;
class GLFWBackend;
class GLFWRendererFrontend;
@@ -40,17 +42,11 @@ public:
// The expected action is to set a new style, different to the current one.
void setChangeStyleCallback(std::function<void()> callback);
- void setPauseResumeCallback(std::function<void()> callback) {
- pauseResumeCallback = callback;
- };
+ void setPauseResumeCallback(std::function<void()> callback) { pauseResumeCallback = std::move(callback); };
- void setOnlineStatusCallback(std::function<void()> callback) {
- onlineStatusCallback = callback;
- }
+ void setOnlineStatusCallback(std::function<void()> callback) { onlineStatusCallback = std::move(callback); }
- void setResetCacheCallback(std::function<void()> callback) {
- resetDatabaseCallback = callback;
- };
+ void setResetCacheCallback(std::function<void()> callback) { resetDatabaseCallback = std::move(callback); };
void setShouldClose();