summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-03 01:40:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-03 01:40:59 +0100
commit527862ae4c676169437d561c96d9658e48b54a28 (patch)
tree7c169f936a2b9aee79cca868d0779c3c85ed7270
parentcb3096c57d1c7460606a796edd0d25c1de71f9af (diff)
compat: avoid narrowing conversion in tuple initializer
-rw-r--r--compat/camera-names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/camera-names.cpp b/compat/camera-names.cpp
index 5d190943..8eef6d61 100644
--- a/compat/camera-names.cpp
+++ b/compat/camera-names.cpp
@@ -76,7 +76,7 @@ std::vector<std::tuple<QString, int>> get_camera_names()
{
// Display the name in your UI somehow.
QString str((QChar*)var.bstrVal, int(std::wcslen(var.bstrVal)));
- ret.push_back({ str, ret.size() });
+ ret.push_back({ str, (int)ret.size() });
}
VariantClear(&var);
pPropBag->Release();