chore: make all the regexes static const
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -72,7 +72,8 @@ ApplicationId ApplicationId::fromTraditionalApp()
|
||||
protoId = protoId.toLower();
|
||||
#endif
|
||||
auto prefix = protoId.section(QLatin1Char('/'), -1);
|
||||
prefix.remove(QRegularExpression("[^a-zA-Z]"));
|
||||
static const QRegularExpression s_removeChars("[^a-zA-Z]");
|
||||
prefix.remove(s_removeChars);
|
||||
prefix.truncate(6);
|
||||
QByteArray idc = protoId.toUtf8();
|
||||
quint16 idNum = qChecksum(idc);
|
||||
|
||||
Reference in New Issue
Block a user