diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-11-20 18:47:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-11-20 18:47:10 +0100 |
commit | f901df82a04f88f80ed50f8e6f918f8674a544ad (patch) | |
tree | 7b9c10f38bc667da11a33edc2a70ca3af94a1b27 | |
parent | ede972a70c6d93d68a828b6e84240e1a5fa547a0 (diff) |
video/opencv: use structured binding in iterator for()
-rw-r--r-- | video-opencv/impl-metadata.cpp | 5 |
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; } |