From f901df82a04f88f80ed50f8e6f918f8674a544ad Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 20 Nov 2021 18:47:01 +0100 Subject: video/opencv: use structured binding in iterator for() --- video-opencv/impl-metadata.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video-opencv/impl-metadata.cpp') diff --git a/video-opencv/impl-metadata.cpp b/video-opencv/impl-metadata.cpp index ffc51773..7642c017 100644 --- a/video-opencv/impl-metadata.cpp +++ b/video-opencv/impl-metadata.cpp @@ -19,11 +19,8 @@ std::vector metadata::camera_names() const { std::vector> names = get_camera_names(); std::vector ret; - for (const auto& t : names) - { - const auto& [str, idx] = t; + for (const auto& [str, idx] : names) ret.push_back(str); - } return ret; } -- cgit v1.2.3