From 814c7a2b30efb66be1ea304f565df33f11077e0d Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 4 Nov 2015 23:51:53 +0100 Subject: [PATCH] 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 --- src/imageformats/rgb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/rgb.cpp b/src/imageformats/rgb.cpp index 27fac8b..c115f0f 100644 --- a/src/imageformats/rgb.cpp +++ b/src/imageformats/rgb.cpp @@ -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);