Use QStringLiteral

This commit is contained in:
Montel Laurent
2015-11-02 21:57:43 +01:00
parent 69c4a4b84a
commit d7f457a124
4 changed files with 17 additions and 17 deletions

View File

@ -699,7 +699,7 @@ bool RGBHandler::canRead(QIODevice *device)
device->seek(oldPos);
}
const QRegExp regexp(QLatin1String("^\x01\xda\x01[\x01\x02]"));
const QRegExp regexp(QStringLiteral("^\x01\xda\x01[\x01\x02]"));
QString data(QString::fromLocal8Bit(head));
return data.contains(regexp);