From 83e14b4f7b8778c0d59d4516c0b36c91cabec971 Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Wed, 20 Feb 2019 17:21:00 -0800 Subject: [PATCH] Allow compiler optimization (#23536) Summary: Fixes a warning thrown by Xcode & allow RVO to be performed. [iOS] [Fixed] - Fix Xcode warnings Pull Request resolved: https://github.com/facebook/react-native/pull/23536 Reviewed By: JoshuaGross Differential Revision: D14142973 Pulled By: hramos fbshipit-source-id: e23050aed811127a3b4f73aa8a74472e4cc8e98c --- React/CxxBridge/RCTCxxBridge.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index d0d89d11717ab8..fbcde6a33d647d 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -83,7 +83,7 @@ typedef NS_ENUM(NSUInteger, RCTBridgeFields) { bridge_.bridgeDescription = [NSString stringWithFormat:@"RCTCxxBridge %s", ret->getDescription().c_str()]; - return std::move(ret); + return ret; } private: