File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ namespace
952
952
using namespace cv ::gimpl;
953
953
GModel::Graph g (graph);
954
954
GFluidModel fg (graph);
955
- for (const auto node : g.nodes ())
955
+ for (const auto & node : g.nodes ())
956
956
{
957
957
if (g.metadata (node).get <NodeType>().t == NodeType::DATA)
958
958
{
@@ -1440,7 +1440,7 @@ void GFluidBackendImpl::addMetaSensitiveBackendPasses(ade::ExecutionEngineSetupC
1440
1440
{
1441
1441
// Add FluidData to all data nodes inside island,
1442
1442
// set internal = true if node is not a slot in terms of higher-level GIslandModel
1443
- for (const auto node : isl->contents ())
1443
+ for (const auto & node : isl->contents ())
1444
1444
{
1445
1445
if (g.metadata (node).get <NodeType>().t == NodeType::DATA &&
1446
1446
!fg.metadata (node).contains <FluidData>())
Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ namespace
71
71
72
72
all.insert (src_g.nodes ().begin (), src_g.nodes ().end ());
73
73
74
- for (const auto nh : proto.in_nhs )
74
+ for (const auto & nh : proto.in_nhs )
75
75
{
76
76
all.erase (nh);
77
77
in_ops.insert (nh->outNodes ().begin (), nh->outNodes ().end ());
78
78
}
79
- for (const auto nh : proto.out_nhs )
79
+ for (const auto & nh : proto.out_nhs )
80
80
{
81
81
all.erase (nh);
82
82
out_ops.insert (nh->inNodes ().begin (), nh->inNodes ().end ());
@@ -90,12 +90,12 @@ namespace
90
90
91
91
auto ih = GIslandModel::mkIslandNode (g, std::move (isl));
92
92
93
- for (const auto nh : proto.in_nhs )
93
+ for (const auto & nh : proto.in_nhs )
94
94
{
95
95
auto slot = GIslandModel::mkSlotNode (g, nh);
96
96
g.link (slot, ih);
97
97
}
98
- for (const auto nh : proto.out_nhs )
98
+ for (const auto & nh : proto.out_nhs )
99
99
{
100
100
auto slot = GIslandModel::mkSlotNode (g, nh);
101
101
g.link (ih, slot);
You can’t perform that action at this time.
0 commit comments