mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore: make all the regexes static const (#3647)
This commit is contained in:
commit
a6006c3a33
37 changed files with 87 additions and 84 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue