mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +08:00
Use const reference in RCTNativeModule::invokeInner
Reviewed By: mhorowitz Differential Revision: D5909088 fbshipit-source-id: 3104e3d0a4b29d457c3c7fad2a29e2f0943b478d
This commit is contained in:
committed by
Facebook Github Bot
parent
bd70f3ab3b
commit
29e7659111
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user