From c0b131e1c2af8a2e35cede032d065a4f01346906 Mon Sep 17 00:00:00 2001 From: Li Feng Date: Fri, 26 Jul 2024 15:10:48 +1000 Subject: [PATCH] try again --- support-lib/jni/Marshal.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/support-lib/jni/Marshal.hpp b/support-lib/jni/Marshal.hpp index bed18e57..87616715 100644 --- a/support-lib/jni/Marshal.hpp +++ b/support-lib/jni/Marshal.hpp @@ -311,8 +311,7 @@ namespace djinni using Boxed = Optional; - static CppType toCpp(JNIEnv* jniEnv, JniType j) - { + static CppType toCpp(JNIEnv* jniEnv, JniType j) { if (j) { return T::Boxed::toCpp(jniEnv, j); } else { @@ -320,12 +319,11 @@ namespace djinni } } - static LocalRef fromCpp(JNIEnv* jniEnv, const OptionalType &c) - { + static LocalRef fromCpp(JNIEnv* jniEnv, const OptionalType &c) { return c ? T::Boxed::fromCpp(jniEnv, *c) : LocalRef{ }; } - static LocalRef fromCpp(JNIEnv* jniEnv, OptionalType&& c) - { + + static LocalRef fromCpp(JNIEnv* jniEnv, OptionalType&& c) { return c ? T::Boxed::fromCpp(jniEnv, std::move(*c)) : LocalRef{ }; }