Permalink
Browse files

Use const reference in RCTNativeModule::invokeInner

Reviewed By: mhorowitz

Differential Revision: D5909088

fbshipit-source-id: 3104e3d0a4b29d457c3c7fad2a29e2f0943b478d
  • Loading branch information...
fromcelticpark authored and facebook-github-bot committed Sep 26, 2017
1 parent bd70f3a commit 29e76591110de914debec9b2458940baf79581e8
Showing with 3 additions and 3 deletions.
  1. +1 −1 React/CxxModule/RCTNativeModule.h
  2. +2 −2 React/CxxModule/RCTNativeModule.mm
@@ -26,7 +26,7 @@ class RCTNativeModule : public NativeModule {
private:
__weak RCTBridge *m_bridge;
RCTModuleData *m_moduleData;
MethodCallResult invokeInner(unsigned int methodId, const folly::dynamic &&params);
MethodCallResult invokeInner(unsigned int methodId, const folly::dynamic &params);
};
}
@@ -77,10 +77,10 @@
}
MethodCallResult RCTNativeModule::callSerializableNativeHook(unsigned int reactMethodId, folly::dynamic &&params) {
return invokeInner(reactMethodId, std::move(params));
return invokeInner(reactMethodId, params);
}
MethodCallResult RCTNativeModule::invokeInner(unsigned int methodId, const folly::dynamic &&params) {
MethodCallResult RCTNativeModule::invokeInner(unsigned int methodId, const folly::dynamic &params) {
if (!m_bridge.valid) {
return folly::none;
}

0 comments on commit 29e7659

Please sign in to comment.