summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-11-20 18:47:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-11-20 18:47:10 +0100
commitf901df82a04f88f80ed50f8e6f918f8674a544ad (patch)
tree7b9c10f38bc667da11a33edc2a70ca3af94a1b27
parentede972a70c6d93d68a828b6e84240e1a5fa547a0 (diff)
video/opencv: use structured binding in iterator for()
-rw-r--r--video-opencv/impl-metadata.cpp5
1 files changed, 1 insertions, 4 deletions
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<QString> metadata::camera_names() const
{
std::vector<std::tuple<QString, int>> names = get_camera_names();
std::vector<QString> ret;
- for (const auto& t : names)
- {
- const auto& [str, idx] = t;
+ for (const auto& [str, idx] : names)
ret.push_back(str);
- }
return ret;
}