mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Instantiate QRegularExpression instances statically
This commit is contained in:
@@ -579,8 +579,9 @@ void writeAutoupdatePrefix(const QString &prefix) {
|
||||
QString readAutoupdatePrefix() {
|
||||
Expects(!Core::UpdaterDisabled());
|
||||
|
||||
static const auto RegExp = QRegularExpression("/+$");
|
||||
auto result = readAutoupdatePrefixRaw();
|
||||
return result.replace(QRegularExpression("/+$"), QString());
|
||||
return result.replace(RegExp, QString());
|
||||
}
|
||||
|
||||
void writeBackground(const Data::WallPaper &paper, const QImage &image) {
|
||||
|
Reference in New Issue
Block a user