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

Use QLatin1String

parent f0754f73
......@@ -236,7 +236,7 @@ CredentialsPage::CredentialsPage(QWidget *parent)
int CredentialsPage::nextId() const
{
QString userName = field(QStringLiteral("credentialsUserName")).toString();
if (userName.endsWith(QStringLiteral("@yahoo.com"))) {
if (userName.endsWith(QLatin1String("@yahoo.com"))) {
KService::List offers;
offers = KServiceTypeTrader::self()->query(QStringLiteral("DavGroupwareProvider"), QStringLiteral("Name == 'Yahoo!'"));
if (offers.isEmpty()) {
......
......@@ -195,7 +195,7 @@ void UrlConfigurationDialog::onFetchButtonClicked()
setRemoteUrl(remoteUrl() + QLatin1Char('/'));
}
if (!remoteUrl().startsWith(QStringLiteral("https://")) && !remoteUrl().startsWith(QStringLiteral("http://"))) {
if (!remoteUrl().startsWith(QLatin1String("https://")) && !remoteUrl().startsWith(QLatin1String("http://"))) {
setRemoteUrl(QStringLiteral("https://") + remoteUrl());
}
......
......@@ -121,7 +121,7 @@ QString ownUrlDecode(QByteArray encodedParam)
RelationMember parseMemberUrl(const QString &string)
{
if (string.startsWith(QStringLiteral("urn:uuid:"))) {
if (string.startsWith(QLatin1String("urn:uuid:"))) {
RelationMember member;
member.gid = string.mid(9);
return member;
......
......@@ -39,7 +39,7 @@ ConnectionTestJob::ConnectionTestJob(const QString &url, const QString &user, co
void ConnectionTestJob::start()
{
if (!mUrl.startsWith(QStringLiteral("https://"))) {
if (!mUrl.startsWith(QLatin1String("https://"))) {
mUrl = QStringLiteral("https://") + mUrl;
}
const QUrl url(mUrl + QStringLiteral("/ajax/login?action=login&name=%1&password=%2").arg(mUser, mPassword));
......
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