diff --git a/cxx/fbjni/detail/References-inl.h b/cxx/fbjni/detail/References-inl.h index b818223..c361c55 100644 --- a/cxx/fbjni/detail/References-inl.h +++ b/cxx/fbjni/detail/References-inl.h @@ -506,9 +506,10 @@ enable_if_t>(), alias_ref> static_ref_cast( } template -auto dynamic_ref_cast(const RefType& ref) -> enable_if_t< - IsPlainJniReference>(), - decltype(static_ref_cast(ref))> { +auto dynamic_ref_cast(const RefType& ref) + -> enable_if_t< + IsPlainJniReference>(), + decltype(static_ref_cast(ref))> { if (!ref) { return decltype(static_ref_cast(ref))(); } diff --git a/cxx/fbjni/detail/References.h b/cxx/fbjni/detail/References.h index 07ae463..3db0313 100644 --- a/cxx/fbjni/detail/References.h +++ b/cxx/fbjni/detail/References.h @@ -673,9 +673,10 @@ enable_if_t>(), alias_ref> static_ref_cast( const alias_ref& ref) noexcept; template -auto dynamic_ref_cast(const RefType& ref) -> enable_if_t< - IsPlainJniReference>(), - decltype(static_ref_cast(ref))>; +auto dynamic_ref_cast(const RefType& ref) + -> enable_if_t< + IsPlainJniReference>(), + decltype(static_ref_cast(ref))>; } // namespace jni } // namespace facebook diff --git a/cxx/fbjni/detail/Registration-inl.h b/cxx/fbjni/detail/Registration-inl.h index 3eaed6a..60f870b 100644 --- a/cxx/fbjni/detail/Registration-inl.h +++ b/cxx/fbjni/detail/Registration-inl.h @@ -136,7 +136,7 @@ struct MethodWrapper { JNI_ENTRY_POINT static typename Converter::jniType call(JNIEnv* env, jobject obj, typename Converter::jniType... args) { return FunctionWrapper< - R (*)(alias_ref, Args && ...), + R (*)(alias_ref, Args&&...), jhybrid, R, Args...>::call(env, obj, args..., dispatch);