Skip to content

Commit

Permalink
touch
Browse files Browse the repository at this point in the history
  • Loading branch information
li-feng-sc committed Jul 26, 2024
1 parent 954a8a9 commit d29731e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support-lib/jni/Marshal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ namespace djinni

static LocalRef<JniType> fromCpp(JNIEnv* jniEnv, const OptionalType<typename T::CppType> &c)
{
return c ? T::Boxed::fromCpp(jniEnv, *c) : LocalRef<JniType>{};
return c ? T::Boxed::fromCpp(jniEnv, *c) : LocalRef<JniType>{ };
}

static LocalRef<JniType> fromCpp(JNIEnv* jniEnv, OptionalType<typename T::CppType>&& c)
{
return c ? T::Boxed::fromCpp(jniEnv, std::move(*c)) : LocalRef<JniType>{};
return c ? T::Boxed::fromCpp(jniEnv, std::move(*c)) : LocalRef<JniType>{ };
}

// fromCpp used for nullable shared_ptr
Expand Down

0 comments on commit d29731e

Please sign in to comment.