diff --git a/packages/react-native/ReactCommon/react/renderer/core/propsConversions.h b/packages/react-native/ReactCommon/react/renderer/core/propsConversions.h index 31cad74f10c61d..7657945dc8d6ae 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/propsConversions.h +++ b/packages/react-native/ReactCommon/react/renderer/core/propsConversions.h @@ -63,9 +63,9 @@ void fromRawValue( auto length = items.size(); result.clear(); result.reserve(length); - for (size_t i = 0; i < length; i++) { + for (auto& item : items) { T itemResult; - fromRawValue(context, items.at(i), itemResult); + fromRawValue(context, item, itemResult); result.push_back(itemResult); } return; @@ -89,9 +89,9 @@ void fromRawValue( auto length = items.size(); result.clear(); result.reserve(length); - for (int i = 0; i < length; i++) { + for (auto& item : items) { T itemResult; - fromRawValue(context, items.at(i), itemResult); + fromRawValue(context, item, itemResult); result.push_back(itemResult); } return;