From 95d2ed7b9597c7dd24a9b95653fe52a2dffb4ece Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Sun, 21 May 2017 20:34:43 +0300 Subject: [android] owning constructor for custom layer --- platform/android/src/style/layers/custom_layer.cpp | 4 ++++ platform/android/src/style/layers/custom_layer.hpp | 2 ++ 2 files changed, 6 insertions(+) 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 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); + ~CustomLayer(); void update(jni::JNIEnv&); -- cgit v1.2.1