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 b739f4d7 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 2db31d01
......@@ -81,15 +81,15 @@ void RichTextComposerEmailQuoteHighlighter::highlightBlock(const QString &text)
simplified = simplified.remove(QRegularExpression(QStringLiteral("\\s"))).
replace(QLatin1Char('|'), QLatin1Char('>'));
while (simplified.startsWith(QStringLiteral(">>>>"))) {
while (simplified.startsWith(QLatin1String(">>>>"))) {
simplified = simplified.mid(3);
}
if (simplified.startsWith(QStringLiteral(">>>"))) {
if (simplified.startsWith(QLatin1String(">>>"))) {
setFormat(0, text.length(), d->col3);
} else if (simplified.startsWith(QStringLiteral(">>"))) {
} else if (simplified.startsWith(QLatin1String(">>"))) {
setFormat(0, text.length(), d->col2);
} else if (simplified.startsWith(QStringLiteral(">"))) {
} else if (simplified.startsWith(QLatin1String(">"))) {
setFormat(0, text.length(), d->col1);
} else if (d->parent->isLineQuoted(text)) {
setFormat(0, text.length(), d->col1); // FIXME: custom quote prefix
......
......@@ -217,7 +217,7 @@ QList<QTextImageFormat> RichTextComposerImages::embeddedImageFormats() const
if (imageFormat.isValid()) {
//TODO: Replace with a way to see if an image is an embedded image or a remote
QUrl url(imageFormat.name());
if (!url.isValid() || !url.scheme().startsWith(QStringLiteral("http"))) {
if (!url.isValid() || !url.scheme().startsWith(QLatin1String("http"))) {
retList.append(imageFormat);
}
}
......
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