File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-native/ReactCommon/react/renderer/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77
88#include " LayoutableShadowNode.h"
99
10+ #include < ranges>
11+
1012#include < react/renderer/core/LayoutConstraints.h>
1113#include < react/renderer/core/LayoutContext.h>
1214#include < react/renderer/core/LayoutMetrics.h>
@@ -83,8 +85,8 @@ LayoutMetrics LayoutableShadowNode::computeRelativeLayoutMetrics(
8385 // root because we measure it from an outside tree perspective.
8486 shadowNodeList.push_back (descendantNode);
8587
86- for (auto it = ancestors. rbegin (); it != ancestors. rend (); it++ ) {
87- auto & shadowNode = it-> first .get ();
88+ for (auto & ancestor : std::ranges::reverse_view ( ancestors) ) {
89+ auto & shadowNode = ancestor. first .get ();
8890
8991 shadowNodeList.push_back (&shadowNode);
9092
You can’t perform that action at this time.
0 commit comments