mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Merge pull request #18559 from maxint:fix-rang-loop-construct-warnings
This commit is contained in:
commit
b494de6a01
@ -952,7 +952,7 @@ namespace
|
||||
using namespace cv::gimpl;
|
||||
GModel::Graph g(graph);
|
||||
GFluidModel fg(graph);
|
||||
for (const auto node : g.nodes())
|
||||
for (const auto& node : g.nodes())
|
||||
{
|
||||
if (g.metadata(node).get<NodeType>().t == NodeType::DATA)
|
||||
{
|
||||
@ -1440,7 +1440,7 @@ void GFluidBackendImpl::addMetaSensitiveBackendPasses(ade::ExecutionEngineSetupC
|
||||
{
|
||||
// Add FluidData to all data nodes inside island,
|
||||
// set internal = true if node is not a slot in terms of higher-level GIslandModel
|
||||
for (const auto node : isl->contents())
|
||||
for (const auto& node : isl->contents())
|
||||
{
|
||||
if (g.metadata(node).get<NodeType>().t == NodeType::DATA &&
|
||||
!fg.metadata(node).contains<FluidData>())
|
||||
|
@ -71,12 +71,12 @@ namespace
|
||||
|
||||
all.insert(src_g.nodes().begin(), src_g.nodes().end());
|
||||
|
||||
for (const auto nh : proto.in_nhs)
|
||||
for (const auto& nh : proto.in_nhs)
|
||||
{
|
||||
all.erase(nh);
|
||||
in_ops.insert(nh->outNodes().begin(), nh->outNodes().end());
|
||||
}
|
||||
for (const auto nh : proto.out_nhs)
|
||||
for (const auto& nh : proto.out_nhs)
|
||||
{
|
||||
all.erase(nh);
|
||||
out_ops.insert(nh->inNodes().begin(), nh->inNodes().end());
|
||||
@ -90,12 +90,12 @@ namespace
|
||||
|
||||
auto ih = GIslandModel::mkIslandNode(g, std::move(isl));
|
||||
|
||||
for (const auto nh : proto.in_nhs)
|
||||
for (const auto& nh : proto.in_nhs)
|
||||
{
|
||||
auto slot = GIslandModel::mkSlotNode(g, nh);
|
||||
g.link(slot, ih);
|
||||
}
|
||||
for (const auto nh : proto.out_nhs)
|
||||
for (const auto& nh : proto.out_nhs)
|
||||
{
|
||||
auto slot = GIslandModel::mkSlotNode(g, nh);
|
||||
g.link(ih, slot);
|
||||
|
Loading…
Reference in New Issue
Block a user