mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
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:
parent
d7f457a124
commit
814c7a2b30
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user