diff --git a/React/CxxModule/RCTNativeModule.h b/React/CxxModule/RCTNativeModule.h index 2245f8c94..4105894cc 100644 --- a/React/CxxModule/RCTNativeModule.h +++ b/React/CxxModule/RCTNativeModule.h @@ -26,7 +26,7 @@ class RCTNativeModule : public NativeModule { private: __weak RCTBridge *m_bridge; RCTModuleData *m_moduleData; - MethodCallResult invokeInner(unsigned int methodId, const folly::dynamic &¶ms); + MethodCallResult invokeInner(unsigned int methodId, const folly::dynamic ¶ms); }; } diff --git a/React/CxxModule/RCTNativeModule.mm b/React/CxxModule/RCTNativeModule.mm index 27b7a50f2..9c1964259 100644 --- a/React/CxxModule/RCTNativeModule.mm +++ b/React/CxxModule/RCTNativeModule.mm @@ -77,10 +77,10 @@ void RCTNativeModule::invoke(unsigned int methodId, folly::dynamic &¶ms, int } MethodCallResult RCTNativeModule::callSerializableNativeHook(unsigned int reactMethodId, folly::dynamic &¶ms) { - return invokeInner(reactMethodId, std::move(params)); + return invokeInner(reactMethodId, params); } -MethodCallResult RCTNativeModule::invokeInner(unsigned int methodId, const folly::dynamic &¶ms) { +MethodCallResult RCTNativeModule::invokeInner(unsigned int methodId, const folly::dynamic ¶ms) { if (!m_bridge.valid) { return folly::none; }