aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/qmllint/quick/quicklintplugin.cpp2
-rw-r--r--src/qmltyperegistrar/qmltyperegistrar.cpp2
2 files changed, 2 insertions, 2 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()) {
diff --git a/src/qmltyperegistrar/qmltyperegistrar.cpp b/src/qmltyperegistrar/qmltyperegistrar.cpp
index 4aa4489f68..21e1db685e 100644
--- a/src/qmltyperegistrar/qmltyperegistrar.cpp
+++ b/src/qmltyperegistrar/qmltyperegistrar.cpp
@@ -549,7 +549,7 @@ int main(int argc, char **argv)
return s;
};
- for (const auto &[qmlName, exportsForSameQmlName] : qmlElementInfos.asKeyValueRange()) {
+ for (const auto [qmlName, exportsForSameQmlName] : qmlElementInfos.asKeyValueRange()) {
// needs a least two cpp classes exporting the same qml element to potentially have a
// conflict
if (exportsForSameQmlName.size() < 2)