diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-14 02:31:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 02:31:36 -0600 |
| commit | 764b2f8944ef4d40a3829c1e55112b0cb4ff32fe (patch) | |
| tree | 76db40f16c2e290ca8df7aff27597b6509f28e4f /src/aoutils.cpp | |
| parent | ed8bc457351005b8590de5a70f8004edcf1635c1 (diff) | |
| parent | a9e2ea19508ceb120fbe8a570d35e651c15f819a (diff) | |
Merge pull request #1067 from AttorneyOnline/cleanup
Very cool and professional cleanup of clazy warnings
Diffstat (limited to 'src/aoutils.cpp')
| -rw-r--r-- | src/aoutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aoutils.cpp b/src/aoutils.cpp index dd88a0a2..f384b81b 100644 --- a/src/aoutils.cpp +++ b/src/aoutils.cpp @@ -46,7 +46,7 @@ void AOUtils::migrateEffects(QSettings &p_effects_ini) // realization_scaling - This would not be appended to the key_list as it matches scaling property. // realization_alt - This would be appened as it contains an underscore, but not a property. // hearts - This would be appended as it does not contain a property - const QRegularExpression l_regex(QStringLiteral("(\\w+)_(%1)$").arg(l_property_list.join("|"))); + static QRegularExpression l_regex(QStringLiteral("(\\w+)_(%1)$").arg(l_property_list.join("|"))); for (auto i = l_effect_map.begin(); i != l_effect_map.end(); i++) { if (l_regex.match(i.key()).hasMatch()) @@ -57,7 +57,7 @@ void AOUtils::migrateEffects(QSettings &p_effects_ini) } int i = 0; - for (const QString &i_effect_key : qAsConst(l_key_list)) + for (const QString &i_effect_key : std::as_const(l_key_list)) { p_effects_ini.beginGroup(QString::number(i++)); p_effects_ini.setValue("name", i_effect_key); |
