mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Use const reference in RCTNativeModule::invokeInner
Reviewed By: mhorowitz Differential Revision: D5909088 fbshipit-source-id: 3104e3d0a4b29d457c3c7fad2a29e2f0943b478d
This commit is contained in:
parent
bd70f3ab3b
commit
29e7659111
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user