Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e501dd6b authored by Laurent Montel's avatar Laurent Montel 😁

use QLatin1String

parent 929f7510
......@@ -1094,7 +1094,7 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
} else {
plainBody.append(c);
if (c == QLatin1Char('\n') || c == QLatin1Char('\r')) {
htmlBody.append(QStringLiteral("<br />"));
htmlBody.append(QLatin1String("<br />"));
htmlBody.append(c);
if (tmpl.size() > i + 1
&& ((c == QLatin1Char('\n') && tmpl[i + 1] == QLatin1Char('\r'))
......
......@@ -215,7 +215,7 @@ QByteArray SearchFullHashJob::jsonRequest() const
QVariantMap threatMap;
QVariantList platformList;
platformList.append(QStringLiteral("WINDOWS"));
platformList.append(QLatin1String("WINDOWS"));
threatMap.insert(QStringLiteral("platformTypes"), platformList);
const QVariantList threatTypesList = { QStringLiteral("MALWARE") };
......
......@@ -125,7 +125,7 @@ void WebEngineView::initializeJQueryScript()
QFile file(QStringLiteral(":/data/jquery.min.js"));
file.open(QIODevice::ReadOnly);
QString jquery = QString::fromUtf8(file.readAll());
jquery.append(QStringLiteral("\nvar qt = { 'jQuery': jQuery.noConflict(true) };"));
jquery.append(QLatin1String("\nvar qt = { 'jQuery': jQuery.noConflict(true) };"));
d->mManagerScript->addScript(page()->profile(), jquery, QStringLiteral("jquery"), QWebEngineScript::DocumentCreation);
}
......
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