Commit 0efd07dc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 51ec9790
Pipeline #21218 passed with stage
in 24 minutes and 24 seconds
......@@ -414,15 +414,16 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
qCDebug(TEMPLATEPARSER_LOG) << "Command: QHEADERS";
i += strlen("QHEADERS");
if (d->mOrigMsg) {
const QString headerStr = QString::fromLatin1(MessageCore::StringUtil::headerAsSendableString(d->mOrigMsg));
QString plainQuote
= quotedPlainText(QString::fromLatin1(MessageCore::StringUtil::headerAsSendableString(d->mOrigMsg)));
= quotedPlainText(headerStr);
if (plainQuote.endsWith(QLatin1Char('\n'))) {
plainQuote.chop(1);
}
plainBody.append(plainQuote);
const QString htmlQuote
= quotedHtmlText(QString::fromLatin1(MessageCore::StringUtil::headerAsSendableString(d->mOrigMsg)));
= quotedHtmlText(headerStr);
const QString str = plainTextToHtml(htmlQuote);
htmlBody.append(str);
}
......
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