Skip to content

Commit

Permalink
chore: avoid unnecessary struct copying in iOS code (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar authored Jul 19, 2022
1 parent 9448467 commit 7e4a348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreenStack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ - (void)takeSnapshot
- (void)mountingTransactionWillMount:(facebook::react::MountingTransaction const &)transaction
withSurfaceTelemetry:(facebook::react::SurfaceTelemetry const &)surfaceTelemetry
{
for (auto mutation : transaction.getMutations()) {
for (auto &mutation : transaction.getMutations()) {
if (mutation.type == facebook::react::ShadowViewMutation::Type::Remove &&
mutation.parentShadowView.componentName != nil &&
strcmp(mutation.parentShadowView.componentName, "RNSScreenStack") == 0) {
Expand Down

0 comments on commit 7e4a348

Please sign in to comment.