summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-07 10:51:45 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-07 10:51:45 (GMT)
commit689b53d02a07837b4b84e94983e3e5b8b25652c7 (patch)
treed121e35df45a2ec4f797805a2b60449da0874904
parentc2e1db60333e860aabab9c7ad754dfad07820aa2 (diff)
Use QStringLiteral in QRegExp constructors.
Picked from qt5 port patch by René J.V. Bertin. REVIEW: 127628
-rw-r--r--lib/mobipocket.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mobipocket.cpp b/lib/mobipocket.cpp
index dd7dfc2..2ebe094 100644
--- a/lib/mobipocket.cpp
+++ b/lib/mobipocket.cpp
@@ -132,11 +132,11 @@ struct DocumentPrivate
void DocumentPrivate::parseHtmlHead(const QString& data)
{
- 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);
+ 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);
title.setMinimal(true);
author.setMinimal(true);
copyright.setMinimal(true);