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

Use QLatin1String

parent 5611728e
......@@ -238,7 +238,7 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
if (!rawContact.customs().empty()) {
const QStringList customs = rawContact.customs();
for (QString custom : customs) {
if (custom.startsWith(QStringLiteral("KADDRESSBOOK-"))) {
if (custom.startsWith(QLatin1String("KADDRESSBOOK-"))) {
custom.remove(QStringLiteral("KADDRESSBOOK-X-"));
custom.remove(QStringLiteral("KADDRESSBOOK-"));
......
......@@ -73,7 +73,7 @@ void TextBrowser::contextMenuEvent(QContextMenuEvent *event)
QString link = anchorAt(event->pos());
if (!link.isEmpty()) {
if (link.startsWith(QStringLiteral("mailto:"))) {
if (link.startsWith(QLatin1String("mailto:"))) {
mDataToCopy = KCodecs::decodeRFC2047String(QUrl(link).path());
// Action text matches that used in KMail
act->setText(i18nc("@action:inmenu Copy a displayed email address", "Copy Email Address"));
......
......@@ -69,7 +69,7 @@ void CustomFieldsListWidget::loadContact(const KContacts::Addressee &contact)
ContactEditor::Utils::splitCustomField(custom, app, name, value);
// skip all well-known fields that have separated editor widgets
if (custom.startsWith(QStringLiteral("messaging/"))) { // IM addresses
if (custom.startsWith(QLatin1String("messaging/"))) { // IM addresses
continue;
}
......
......@@ -49,7 +49,7 @@ void MessagingWidgetLister::loadContact(const KContacts::Addressee &contact)
QString app, name, value;
ContactEditor::Utils::splitCustomField(custom, app, name, value);
if (app.startsWith(QStringLiteral("messaging/"))) {
if (app.startsWith(QLatin1String("messaging/"))) {
if (name == QLatin1String("All")) {
const QString protocol = app;
const QStringList names = value.split(QChar(0xE000), QString::SkipEmptyParts);
......
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