summaryrefslogtreecommitdiff
path: root/platform/android/src
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-05-21 20:34:43 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-05-23 10:06:56 +0300
commit95d2ed7b9597c7dd24a9b95653fe52a2dffb4ece (patch)
tree6882ad386a8a4a3eb1a0743a7b6c17e10716262a /platform/android/src
parent2dd8553096d76c69e3492b1f3c657a1dcba8a04e (diff)
downloadqtlocation-mapboxgl-95d2ed7b9597c7dd24a9b95653fe52a2dffb4ece.tar.gz
[android] owning constructor for custom layer
Diffstat (limited to 'platform/android/src')
-rw-r--r--platform/android/src/style/layers/custom_layer.cpp4
-rw-r--r--platform/android/src/style/layers/custom_layer.hpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/platform/android/src/style/layers/custom_layer.cpp b/platform/android/src/style/layers/custom_layer.cpp
index 9bdc308d85..e6321a8efa 100644
--- a/platform/android/src/style/layers/custom_layer.cpp
+++ b/platform/android/src/style/layers/custom_layer.cpp
@@ -21,6 +21,10 @@ namespace android {
: Layer(map, coreLayer) {
}
+ CustomLayer::CustomLayer(mbgl::Map& map, std::unique_ptr<mbgl::style::CustomLayer> coreLayer)
+ : Layer(map, std::move(coreLayer)) {
+ }
+
CustomLayer::~CustomLayer() = default;
void CustomLayer::update(jni::JNIEnv&) {
diff --git a/platform/android/src/style/layers/custom_layer.hpp b/platform/android/src/style/layers/custom_layer.hpp
index 1173d21bfd..3e3f3bf77f 100644
--- a/platform/android/src/style/layers/custom_layer.hpp
+++ b/platform/android/src/style/layers/custom_layer.hpp
@@ -20,6 +20,8 @@ public:
CustomLayer(mbgl::Map&, mbgl::style::CustomLayer&);
+ CustomLayer(mbgl::Map&, std::unique_ptr<mbgl::style::CustomLayer>);
+
~CustomLayer();
void update(jni::JNIEnv&);