Commit 7f2baf04 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to assign qstring

parent 3706e6ae
......@@ -706,7 +706,7 @@ QString Util::processHtml(const QString &htmlSource, QString &extraHead)
QString textBeforeDoctype;
if (indexDoctype != -1) {
textBeforeDoctype = s.left(indexDoctype);
s = s.remove(textBeforeDoctype);
s.remove(textBeforeDoctype);
}
s = s.remove(QRegExp(QStringLiteral("^<!DOCTYPE[^>]*>"), Qt::CaseInsensitive)).trimmed();
s = s.remove(QRegExp(QStringLiteral("<html[^>]*>"), Qt::CaseInsensitive)).trimmed();
......
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