summaryrefslogtreecommitdiff
path: root/platform/qt
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-22 21:15:00 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-23 09:12:44 +0200
commitac6855a4734be099319e4003eff4951074e7fd57 (patch)
treed6c7a4d73fe221c307d507ced96a7ad29880db92 /platform/qt
parent1d7b243a06c6c3d2def4d1989e93e90250e87cad (diff)
downloadqtlocation-mapboxgl-ac6855a4734be099319e4003eff4951074e7fd57.tar.gz
[core] Fix signature of fluent interface setters
Diffstat (limited to 'platform/qt')
-rw-r--r--platform/qt/src/qmapboxgl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp
index 1feeecdd7c..82b157d57a 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -1706,19 +1706,19 @@ void QMapboxGL::connectionEstablished()
*/
mbgl::MapOptions mapOptionsFromQMapboxGLSettings(const QMapboxGLSettings &settings) {
- return mbgl::MapOptions()
+ return std::move(mbgl::MapOptions()
.withMapMode(static_cast<mbgl::MapMode>(settings.mapMode()))
.withConstrainMode(static_cast<mbgl::ConstrainMode>(settings.constrainMode()))
- .withViewportMode(static_cast<mbgl::ViewportMode>(settings.viewportMode()));
+ .withViewportMode(static_cast<mbgl::ViewportMode>(settings.viewportMode())));
}
mbgl::ResourceOptions resourceOptionsFromQMapboxGLSettings(const QMapboxGLSettings &settings) {
- return mbgl::ResourceOptions()
+ return std::move(mbgl::ResourceOptions()
.withAccessToken(settings.accessToken().toStdString())
.withAssetPath(settings.assetPath().toStdString())
.withBaseURL(settings.apiBaseUrl().toStdString())
.withCachePath(settings.cacheDatabasePath().toStdString())
- .withMaximumCacheSize(settings.cacheDatabaseMaximumSize());
+ .withMaximumCacheSize(settings.cacheDatabaseMaximumSize()));
}
QMapboxGLPrivate::QMapboxGLPrivate(QMapboxGL *q, const QMapboxGLSettings &settings, const QSize &size, qreal pixelRatio_)