[android] return source ownership on remove
This commit is contained in:
committed by
Ivo van Dongen
parent
8d53f9f091
commit
36dea5ea0d
@@ -31,6 +31,14 @@ namespace android {
|
||||
Source::~Source() {
|
||||
}
|
||||
|
||||
style::Source& Source::get() {
|
||||
return source;
|
||||
}
|
||||
|
||||
void Source::setSource(std::unique_ptr<style::Source> coreSource) {
|
||||
this->ownedSource = std::move(coreSource);
|
||||
}
|
||||
|
||||
jni::String Source::getId(jni::JNIEnv& env) {
|
||||
return jni::Make<jni::String>(env, source.getID());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user