summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-07 21:05:37 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-07 21:05:37 (GMT)
commit6eb0209c7f4cc642923b3418645cf5b1aa0ea07f (patch)
treed84fc06fb28062f826bf3a2b475fdc984fec4df5
parent69c91babe0c0f91a748529df3a66088e6f11cef7 (diff)
Revert "Use QStringLiteral in QRegExp constructors."
This is crashy, thanks to Albert for reminding me. https://blogs.kde.org/2015/11/05/qregexp-qstringliteral-crash-exit This reverts commit 689b53d02a07837b4b84e94983e3e5b8b25652c7.
-rw-r--r--lib/mobipocket.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mobipocket.cpp b/lib/mobipocket.cpp
index 2ebe094..dd7dfc2 100644
--- a/lib/mobipocket.cpp
+++ b/lib/mobipocket.cpp
@@ -132,11 +132,11 @@ struct DocumentPrivate
void DocumentPrivate::parseHtmlHead(const QString& data)
{
- static QRegExp title(QStringLiteral("<dc:title.*>(.*)</dc:title>"), Qt::CaseInsensitive);
- static QRegExp author(QStringLiteral("<dc:creator.*>(.*)</dc:creator>"), Qt::CaseInsensitive);
- static QRegExp copyright(QStringLiteral("<dc:rights.*>(.*)</dc:rights>"), Qt::CaseInsensitive);
- static QRegExp subject(QStringLiteral("<dc:subject.*>(.*)</dc:subject>"), Qt::CaseInsensitive);
- static QRegExp description(QStringLiteral("<dc:description.*>(.*)</dc:description>"), Qt::CaseInsensitive);
+ static QRegExp title("<dc:title.*>(.*)</dc:title>", Qt::CaseInsensitive);
+ static QRegExp author("<dc:creator.*>(.*)</dc:creator>", Qt::CaseInsensitive);
+ static QRegExp copyright("<dc:rights.*>(.*)</dc:rights>", Qt::CaseInsensitive);
+ static QRegExp subject("<dc:subject.*>(.*)</dc:subject>", Qt::CaseInsensitive);
+ static QRegExp description("<dc:description.*>(.*)</dc:description>", Qt::CaseInsensitive);
title.setMinimal(true);
author.setMinimal(true);
copyright.setMinimal(true);