summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-05 22:18:56 +0100
committerMontel Laurent <[email protected]>2015-11-05 22:20:55 +0100
commit24f7a5587751e4ba81c6b1aaf33bf291a1eb6b13 (patch)
tree6bcdc3d0bc66e4507b4db10784e01cb3c46575a2
parent486d20769f88cfcd3bf13569b2af3b30e2c9dd30 (diff)
USe QLatin1String
-rw-r--r--resources/dav/resource/setupwizard.cpp2
-rw-r--r--resources/imap/setupserver.cpp2
-rw-r--r--resources/openxchange/oxa/contactutils.cpp2
-rw-r--r--resources/openxchange/oxa/incidenceutils.cpp2
-rw-r--r--resources/pop3/accountdialog.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/resources/dav/resource/setupwizard.cpp b/resources/dav/resource/setupwizard.cpp
index 56fd87e..5c2d34e 100644
--- a/resources/dav/resource/setupwizard.cpp
+++ b/resources/dav/resource/setupwizard.cpp
@@ -77,7 +77,7 @@ static QString settingsToUrl(const QWizard *wizard, const QString &protocol)
QString username = wizard->field(QStringLiteral("credentialsUserName")).toString();
QString localPart(username);
- localPart.remove(QRegExp(QStringLiteral("@.*$")));
+ localPart.remove(QRegExp(QLatin1String("@.*$")));
pathPattern.replace(QStringLiteral("$user$"), username);
pathPattern.replace(QStringLiteral("$localpart$"), localPart);
QString providerName;
diff --git a/resources/imap/setupserver.cpp b/resources/imap/setupserver.cpp
index 5f09892..cf2a30b 100644
--- a/resources/imap/setupserver.cpp
+++ b/resources/imap/setupserver.cpp
@@ -155,7 +155,7 @@ SetupServer::SetupServer(ImapResourceBase *parentResource, WId parent)
m_ui->checkInterval->setSingleStep(1);
// regex for evaluating a valid server name/ip
- mValidator.setRegExp(QRegExp(QStringLiteral("[A-Za-z0-9-_:.]*")));
+ mValidator.setRegExp(QRegExp(QLatin1String("[A-Za-z0-9-_:.]*")));
m_ui->imapServer->setValidator(&mValidator);
m_ui->folderRequester->setMimeTypeFilter(
diff --git a/resources/openxchange/oxa/contactutils.cpp b/resources/openxchange/oxa/contactutils.cpp
index 3ac0274..51a77ec 100644
--- a/resources/openxchange/oxa/contactutils.cpp
+++ b/resources/openxchange/oxa/contactutils.cpp
@@ -244,7 +244,7 @@ void OXA::ContactUtils::parseContact(const QDomElement &propElement, Object &obj
} else if (tagName == QLatin1String("pager")) {
contact.insertPhoneNumber(KContacts::PhoneNumber(text, KContacts::PhoneNumber::Pager));
} else if (tagName == QLatin1String("categories")) {
- contact.setCategories(text.split(QRegExp(QStringLiteral(",\\s*"))));
+ contact.setCategories(text.split(QRegExp(QLatin1String(",\\s*"))));
}
element = element.nextSiblingElement();
diff --git a/resources/openxchange/oxa/incidenceutils.cpp b/resources/openxchange/oxa/incidenceutils.cpp
index 32ec9b6..40e986b 100644
--- a/resources/openxchange/oxa/incidenceutils.cpp
+++ b/resources/openxchange/oxa/incidenceutils.cpp
@@ -129,7 +129,7 @@ static void parseIncidenceAttribute(const QDomElement &element,
incidence->setSecrecy(KCalCore::Incidence::SecrecyPublic);
}
} else if (tagName == QLatin1String("categories")) {
- incidence->setCategories(text.split(QRegExp(QStringLiteral(",\\s*"))));
+ incidence->setCategories(text.split(QRegExp(QLatin1String(",\\s*"))));
}
}
diff --git a/resources/pop3/accountdialog.cpp b/resources/pop3/accountdialog.cpp
index da95110..3c341b7 100644
--- a/resources/pop3/accountdialog.cpp
+++ b/resources/pop3/accountdialog.cpp
@@ -83,7 +83,7 @@ AccountDialog::AccountDialog(POP3Resource *parentResource, WId parentWindow)
KWindowSystem::setMainWindow(this, parentWindow);
setWindowIcon(QIcon::fromTheme(QStringLiteral("network-server")));
setWindowTitle(i18n("POP3 Account Settings"));
- mValidator.setRegExp(QRegExp(QStringLiteral("[A-Za-z0-9-_:.]*")));
+ mValidator.setRegExp(QRegExp(QLatin1String("[A-Za-z0-9-_:.]*")));
setupWidgets();
loadSettings();