From 1cf8ef0437bdd71da4dd18034a6030f5af20bd29 Mon Sep 17 00:00:00 2001 From: Rinigus Date: Sun, 8 Oct 2017 21:10:11 +0300 Subject: [qt] use const for setting ResourceTransform --- platform/qt/include/qmapboxgl.hpp | 2 +- platform/qt/src/qmapboxgl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/qt') diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index ce9cf1778c..ebbd949921 100644 --- a/platform/qt/include/qmapboxgl.hpp +++ b/platform/qt/include/qmapboxgl.hpp @@ -62,7 +62,7 @@ public: void setApiBaseUrl(const QString &); std::function resourceTransform() const; - void setResourceTransform(std::function &); + void setResourceTransform(const std::function &); private: GLContextMode m_contextMode; diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index 105e1d8513..074ef280aa 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -378,7 +378,7 @@ std::function QMapboxGLSettings::resourceTran used add or remove custom parameters, or reroute certain requests to other servers or endpoints. */ -void QMapboxGLSettings::setResourceTransform(std::function &transform) +void QMapboxGLSettings::setResourceTransform(const std::function &transform) { m_resourceTransform = transform; } -- cgit v1.2.1