Commit 6eb0209c authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

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 689b53d0.
parent 69c91bab
......@@ -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);
......
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