summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-03-20 10:31:18 +0200
committerkevin <kevin.li@mapbox.com>2020-03-24 10:39:43 +0800
commitcb438bf34e0da1ab00c3f6b369b6788463b1c388 (patch)
tree35d8b2e4c3c46713ae7693be848bcdad3831a223
parenta0b7d4f5776fd8e3bbd1cd63316a4ba0eab3f58e (diff)
downloadqtlocation-mapboxgl-cb438bf34e0da1ab00c3f6b369b6788463b1c388.tar.gz
Clang format
-rw-r--r--platform/android/src/snapshotter/map_snapshotter.cpp12
-rw-r--r--platform/android/src/snapshotter/map_snapshotter.hpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/platform/android/src/snapshotter/map_snapshotter.cpp b/platform/android/src/snapshotter/map_snapshotter.cpp
index 812bd414eb..f3884efb30 100644
--- a/platform/android/src/snapshotter/map_snapshotter.cpp
+++ b/platform/android/src/snapshotter/map_snapshotter.cpp
@@ -41,12 +41,12 @@ MapSnapshotter::MapSnapshotter(jni::JNIEnv& _env,
showLogo = _showLogo;
// Create the core snapshotter
- snapshotter = std::make_unique<mbgl::MapSnapshotter>(size,
- pixelRatio,
- mbgl::android::FileSource::getSharedResourceOptions(_env, _jFileSource),
- *this,
- _localIdeographFontFamily ? jni::Make<std::string>(_env, _localIdeographFontFamily)
- : optional<std::string>{});
+ snapshotter = std::make_unique<mbgl::MapSnapshotter>(
+ size,
+ pixelRatio,
+ mbgl::android::FileSource::getSharedResourceOptions(_env, _jFileSource),
+ *this,
+ _localIdeographFontFamily ? jni::Make<std::string>(_env, _localIdeographFontFamily) : optional<std::string>{});
if (position) {
snapshotter->setCameraOptions(CameraPosition::getCameraOptions(_env, position, pixelRatio));
diff --git a/platform/android/src/snapshotter/map_snapshotter.hpp b/platform/android/src/snapshotter/map_snapshotter.hpp
index c7c25faab4..1adaba4c78 100644
--- a/platform/android/src/snapshotter/map_snapshotter.hpp
+++ b/platform/android/src/snapshotter/map_snapshotter.hpp
@@ -1,9 +1,9 @@
#pragma once
#include <jni/jni.hpp>
+#include <mapbox/weak.hpp>
#include <mbgl/map/map_snapshotter.hpp>
#include <mbgl/util/util.hpp>
-#include <mapbox/weak.hpp>
#include <memory>