diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:17:51 -0600 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:17:51 -0600 |
| commit | 0bd3ddf7f0a18dda9d02ae3f8d2e9807c3329df8 (patch) | |
| tree | 32c7c2960d0081cd81563c32b2486efcd6e521a6 /src/aoutils.cpp | |
| parent | 501f2a9dd029519af9d4ad7e298785b5575a1584 (diff) | |
make regular expression object static
Diffstat (limited to 'src/aoutils.cpp')
| -rw-r--r-- | src/aoutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aoutils.cpp b/src/aoutils.cpp index 47aa1cac..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()) |
