aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmllint/quick/quicklintplugin.cpp
diff options
context:
space:
mode:
authorMaximilian Goldstein <[email protected]>2022-05-16 15:42:14 +0200
committerMaximilian Goldstein <[email protected]>2022-05-17 16:38:17 +0200
commit1257890f2c105203a3631444b93588cd926da413 (patch)
treefe37aa2b08b5d2798f2bcb09c0019527550ddf2c /src/plugins/qmllint/quick/quicklintplugin.cpp
parentf0552ab01de094782eda4c39a4f45567e474f833 (diff)
quicklintplugin: Use std::array instead of an initializer list
Just to make codechecker happy. Change-Id: I1abebee11cbf2207ffed88fdfebccd797ebdca07 Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/plugins/qmllint/quick/quicklintplugin.cpp')
-rw-r--r--src/plugins/qmllint/quick/quicklintplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmllint/quick/quicklintplugin.cpp b/src/plugins/qmllint/quick/quicklintplugin.cpp
index 8a301e5ffc..cc0ef9dd76 100644
--- a/src/plugins/qmllint/quick/quicklintplugin.cpp
+++ b/src/plugins/qmllint/quick/quicklintplugin.cpp
@@ -413,9 +413,9 @@ void ControlsSwipeDelegateValidatorPass::run(const QQmlSA::Element &element)
auto group = swipe.first->groupType();
- const auto ownDirBindings = { group->ownPropertyBindings(u"right"_s),
- group->ownPropertyBindings(u"left"_s),
- group->ownPropertyBindings(u"behind"_s) };
+ const std::array ownDirBindings = { group->ownPropertyBindings(u"right"_s),
+ group->ownPropertyBindings(u"left"_s),
+ group->ownPropertyBindings(u"behind"_s) };
auto ownBindingIterator =
std::find_if(ownDirBindings.begin(), ownDirBindings.end(),