aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2017-12-27 22:45:21 +0100
committerLaurent Montel <[email protected]>2017-12-27 22:45:21 +0100
commitfeea4c0812d514717afa535107848422340f182e (patch)
tree6da9d7cb1ddb3c4aa0630759366909b03d836b4d
parent5611728e856b4912cdd19048edb187fb62b075df (diff)
Use QLatin1String
-rw-r--r--src/akonadi-contacts/standardcontactformatter.cpp2
-rw-r--r--src/akonadi-contacts/textbrowser.cpp2
-rw-r--r--src/contact-editor/editor/customfieldeditor/customfieldslistwidget.cpp2
-rw-r--r--src/contact-editor/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/akonadi-contacts/standardcontactformatter.cpp b/src/akonadi-contacts/standardcontactformatter.cpp
index b61d792..70e2254 100644
--- a/src/akonadi-contacts/standardcontactformatter.cpp
+++ b/src/akonadi-contacts/standardcontactformatter.cpp
@@ -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-"));
diff --git a/src/akonadi-contacts/textbrowser.cpp b/src/akonadi-contacts/textbrowser.cpp
index ebd39a0..ba944f6 100644
--- a/src/akonadi-contacts/textbrowser.cpp
+++ b/src/akonadi-contacts/textbrowser.cpp
@@ -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"));
diff --git a/src/contact-editor/editor/customfieldeditor/customfieldslistwidget.cpp b/src/contact-editor/editor/customfieldeditor/customfieldslistwidget.cpp
index f021a51..1a26c43 100644
--- a/src/contact-editor/editor/customfieldeditor/customfieldslistwidget.cpp
+++ b/src/contact-editor/editor/customfieldeditor/customfieldslistwidget.cpp
@@ -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;
}
diff --git a/src/contact-editor/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp b/src/contact-editor/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
index 14ee54a..703de99 100644
--- a/src/contact-editor/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
+++ b/src/contact-editor/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
@@ -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);