Skip to content

Commit 0bd3ddf

Browse files
committed
make regular expression object static
1 parent 501f2a9 commit 0bd3ddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aoutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void AOUtils::migrateEffects(QSettings &p_effects_ini)
4646
// realization_scaling - This would not be appended to the key_list as it matches scaling property.
4747
// realization_alt - This would be appened as it contains an underscore, but not a property.
4848
// hearts - This would be appended as it does not contain a property
49-
const QRegularExpression l_regex(QStringLiteral("(\\w+)_(%1)$").arg(l_property_list.join("|")));
49+
static QRegularExpression l_regex(QStringLiteral("(\\w+)_(%1)$").arg(l_property_list.join("|")));
5050
for (auto i = l_effect_map.begin(); i != l_effect_map.end(); i++)
5151
{
5252
if (l_regex.match(i.key()).hasMatch())

0 commit comments

Comments
 (0)