diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-20 11:48:37 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-22 23:43:55 +0200 |
commit | 3e21f50e520276d0a52fa1a39ccbc97ca7fbf06d (patch) | |
tree | d1a78996eb97ba846a3172d5c2ad7f1b609944d6 /src/plugins/qmllint | |
parent | 3b408c28a83093fe4a2f5187f7a49f70eb2679d3 (diff) |
Fix compiler warning
QMultiHash::asKeyValueRange doesn't return references. Loop over it as a
copy to silence clang warning.
Change-Id: Ib72c5a6bec3631f839383b4c8c6bd98b84ff1011
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/plugins/qmllint')
-rw-r--r-- | src/plugins/qmllint/quick/quicklintplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmllint/quick/quicklintplugin.cpp b/src/plugins/qmllint/quick/quicklintplugin.cpp index 142deaf3d3..253249cf8b 100644 --- a/src/plugins/qmllint/quick/quicklintplugin.cpp +++ b/src/plugins/qmllint/quick/quicklintplugin.cpp @@ -417,7 +417,7 @@ VarBindingTypeValidatorPass::VarBindingTypeValidatorPass( { QMultiHash<QString, QQmlJSScope::ConstPtr> propertyTypes; - for (const auto &pair : expectedPropertyTypes.asKeyValueRange()) { + for (const auto pair : expectedPropertyTypes.asKeyValueRange()) { QQmlSA::Element propType; if (!pair.second.module.isEmpty()) { |