make regular expression object static
This commit is contained in:
parent
501f2a9dd0
commit
0bd3ddf7f0
@ -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_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.
|
// 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
|
// 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++)
|
for (auto i = l_effect_map.begin(); i != l_effect_map.end(); i++)
|
||||||
{
|
{
|
||||||
if (l_regex.match(i.key()).hasMatch())
|
if (l_regex.match(i.key()).hasMatch())
|
||||||
|
Loading…
Reference in New Issue
Block a user