Use static QRegularExpression
This commit is contained in:
@@ -50,7 +50,7 @@ SongList PLSParser::Load(QIODevice *device, const QString &playlist_path, const
|
||||
Q_UNUSED(playlist_path);
|
||||
|
||||
QMap<int, Song> songs;
|
||||
QRegularExpression n_re(QStringLiteral("\\d+$"));
|
||||
static const QRegularExpression n_re(QStringLiteral("\\d+$"));
|
||||
|
||||
while (!device->atEnd()) {
|
||||
QString line = QString::fromUtf8(device->readLine()).trimmed();
|
||||
|
||||
Reference in New Issue
Block a user