Partially revert d7f457a to prevent crash on application exit

The change to QLatin1String to QStringLiteral had a very nasty
unintended side effect, causing many (but not all) applications to
crash on exit.

Laurent, please be wary with blanket changes on low level code as
they might break things in unexpected ways.

CCMAIL: montel@kde.org
CCMAIL: tittiatcoke@gmail.com
This commit is contained in:
Luca Beltrame 2015-11-04 23:51:53 +01:00
parent d7f457a124
commit 814c7a2b30

View File

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