Skip to content

Commit

Permalink
Allow compiler optimization (facebook#23536)
Browse files Browse the repository at this point in the history
Summary:
Fixes a warning thrown by Xcode & allow RVO to be performed.

[iOS] [Fixed] - Fix Xcode warnings
Pull Request resolved: facebook#23536

Reviewed By: JoshuaGross

Differential Revision: D14142973

Pulled By: hramos

fbshipit-source-id: e23050aed811127a3b4f73aa8a74472e4cc8e98c
  • Loading branch information
ericlewis authored and Martynas Bardauskas committed Feb 21, 2019
1 parent 5cf33aa commit 83e14b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/CxxBridge/RCTCxxBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 83e14b4

Please sign in to comment.