diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-11-14 12:07:14 +0100 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-11-14 14:05:18 +0100 |
commit | 36dea5ea0d3ca294d61cd030d23644a312e223a1 (patch) | |
tree | b0504dd351e8d20eaef0c260d9af3f004c2d8a8c /platform/android/src/style/sources/source.hpp | |
parent | 8d53f9f09191b390a5a6f31b41714a8178ed326b (diff) | |
download | qtlocation-mapboxgl-36dea5ea0d3ca294d61cd030d23644a312e223a1.tar.gz |
[android] return source ownership on remove
Diffstat (limited to 'platform/android/src/style/sources/source.hpp')
-rw-r--r-- | platform/android/src/style/sources/source.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/src/style/sources/source.hpp b/platform/android/src/style/sources/source.hpp index b24dc891b4..0e5d354d93 100644 --- a/platform/android/src/style/sources/source.hpp +++ b/platform/android/src/style/sources/source.hpp @@ -32,6 +32,13 @@ public: virtual ~Source(); + /** + * Set core source (ie return ownership after remove) + */ + void setSource(std::unique_ptr<style::Source>); + + style::Source& get(); + void addToMap(mbgl::Map&); virtual jni::jobject* createJavaPeer(jni::JNIEnv&) = 0; |