mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
GAPI: fix Clang warning for dangling references in for loop variable
This commit is contained in:
@@ -81,7 +81,7 @@ namespace opencv_test
|
||||
|
||||
void check(const std::vector<cv::Mat>& out_mats)
|
||||
{
|
||||
for (const auto& it : ade::util::zip(ref_mats, out_mats))
|
||||
for (const auto it : ade::util::zip(ref_mats, out_mats))
|
||||
{
|
||||
const auto& ref_mat = std::get<0>(it);
|
||||
const auto& out_mat = std::get<1>(it);
|
||||
|
||||
@@ -213,7 +213,7 @@ TEST(GModelBuilder, Check_Multiple_Outputs)
|
||||
EXPECT_EQ(0u, gm.metadata(p.out_nhs[1]->inEdges().front()).get<cv::gimpl::Output>().port);
|
||||
EXPECT_EQ(1u, gm.metadata(p.out_nhs[2]->inEdges().front()).get<cv::gimpl::Output>().port);
|
||||
EXPECT_EQ(0u, gm.metadata(p.out_nhs[3]->inEdges().front()).get<cv::gimpl::Output>().port);
|
||||
for (const auto& it : ade::util::indexed(p.out_nhs))
|
||||
for (const auto it : ade::util::indexed(p.out_nhs))
|
||||
{
|
||||
const auto& out_nh = ade::util::value(it);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user