Commit af289816 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char when possible

parent 640c8a2a
......@@ -149,7 +149,7 @@ bool QSkypeDialer::sendSms(const QString &number, const QString &text)
// First we create a new SMS object that gets an ID. We need that ID later...
QDBusReply<QString> reply = mInterface->call(QStringLiteral("Invoke"), QStringLiteral("CREATE SMS OUTGOING %1").arg(number));
const QString messageId = reply.value().section(QStringLiteral(" "), 1, 1);
const QString messageId = reply.value().section(QLatin1Char(' '), 1, 1);
// Set the SMS text
reply = mInterface->call(QStringLiteral("Invoke"), QStringLiteral("SET SMS %1 BODY %2").arg(messageId, text));
......
......@@ -135,13 +135,13 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
values += number.number();
}
return values.join(QStringLiteral("\n"));
return values.join(QLatin1Char('\n'));
break;
}
case PreferredEmail:
return contact.preferredEmail();
case AllEmails:
return contact.emails().join(QStringLiteral("\n"));
return contact.emails().join(QLatin1Char('\n'));
case Organization:
return contact.organization();
case Role:
......
......@@ -70,7 +70,7 @@ void EmailAddressRequester::Private::slotAddressBook()
}
}
mLineEdit->setText(text + addressList.join(QStringLiteral(",")));
mLineEdit->setText(text + addressList.join(QLatin1Char(',')));
}
EmailAddressRequester::EmailAddressRequester(QWidget *parent)
......
......@@ -123,7 +123,7 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
int counter = 0;
foreach (const KContacts::PhoneNumber &number, rawContact.phoneNumbers()) {
QString dispLabel = number.typeLabel().replace(QStringLiteral(" "), QStringLiteral("&nbsp;"));
QString dispLabel = number.typeLabel().replace(QLatin1Char(' '), QStringLiteral("&nbsp;"));
QString dispValue = QStringLiteral("<a href=\"phone:?index=%1\">%2</a>").arg(counter).arg(number.number().toHtmlEscaped());
if (number.type() & KContacts::PhoneNumber::Cell) {
QString dispIcon = QStringLiteral("<a href=\"sms:?index=%1\" title=\"%2\"><img src=\"sms_icon\" align=\"top\"/>")
......
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