Commit 689b53d0 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Use QStringLiteral in QRegExp constructors.

Picked from qt5 port patch by René J.V. Bertin.

REVIEW: 127628
parent c2e1db60
...@@ -132,11 +132,11 @@ struct DocumentPrivate ...@@ -132,11 +132,11 @@ struct DocumentPrivate
void DocumentPrivate::parseHtmlHead(const QString& data) void DocumentPrivate::parseHtmlHead(const QString& data)
{ {
static QRegExp title("<dc:title.*>(.*)</dc:title>", Qt::CaseInsensitive); static QRegExp title(QStringLiteral("<dc:title.*>(.*)</dc:title>"), Qt::CaseInsensitive);
static QRegExp author("<dc:creator.*>(.*)</dc:creator>", Qt::CaseInsensitive); static QRegExp author(QStringLiteral("<dc:creator.*>(.*)</dc:creator>"), Qt::CaseInsensitive);
static QRegExp copyright("<dc:rights.*>(.*)</dc:rights>", Qt::CaseInsensitive); static QRegExp copyright(QStringLiteral("<dc:rights.*>(.*)</dc:rights>"), Qt::CaseInsensitive);
static QRegExp subject("<dc:subject.*>(.*)</dc:subject>", Qt::CaseInsensitive); static QRegExp subject(QStringLiteral("<dc:subject.*>(.*)</dc:subject>"), Qt::CaseInsensitive);
static QRegExp description("<dc:description.*>(.*)</dc:description>", Qt::CaseInsensitive); static QRegExp description(QStringLiteral("<dc:description.*>(.*)</dc:description>"), Qt::CaseInsensitive);
title.setMinimal(true); title.setMinimal(true);
author.setMinimal(true); author.setMinimal(true);
copyright.setMinimal(true); copyright.setMinimal(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment