Commit 9e579d72 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char

parent fab4c862
......@@ -127,7 +127,7 @@ QString SieveEditorGraphicalModeWidget::currentscript()
QStringList requireModules;
QString script = mSieveScript->generatedScript(requireModules);
if (!requireModules.isEmpty()) {
script.prepend(requireModules.join(QStringLiteral("\n")) + QStringLiteral("\n\n"));
script.prepend(requireModules.join(QLatin1Char('\n')) + QStringLiteral("\n\n"));
}
return script;
}
......
......@@ -278,7 +278,7 @@ void SieveEditorTextModeWidget::createRulesGraphically()
const QString script = dlg->script(requireModules);
QString newPlainText = mTextEdit->toPlainText() + script;
if (!requireModules.isEmpty()) {
newPlainText.prepend(requireModules.join(QStringLiteral("\n")) + QLatin1Char('\n'));
newPlainText.prepend(requireModules.join(QLatin1Char('\n')) + QLatin1Char('\n'));
}
mTextEdit->selectAll();
......
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