summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 21:55:15 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 21:55:15 (GMT)
commit694a761bc9016bb50de175984a33f2055f9a3b93 (patch)
treee5cd49dbac415938e1958799c74239a0507751ca
parent4d0a53a172ec7267142f73fa637534a6808b49b2 (diff)
Fix some clazy warningv16.11.80
-rw-r--r--src/utils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index b87ce1a..a33e2b1 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -534,23 +534,23 @@ QString CalendarSupport::displayName(Akonadi::ETMCalendar *calendar, const Akona
while (p != Akonadi::Collection::root()) {
Akonadi::Collection tCol = calendar->collection(p.id());
const QString tName = tCol.name();
- if (tName.toLower().startsWith(QStringLiteral("shared.cal"))) {
+ if (tName.startsWith(QStringLiteral("shared.cal"), Qt::CaseInsensitive)) {
ownerStr = QStringLiteral("Shared");
nameStr = cName;
typeStr = QStringLiteral("Calendar");
break;
- } else if (tName.toLower().startsWith(QStringLiteral("shared.tasks")) ||
- tName.toLower().startsWith(QStringLiteral("shared.todo"))) {
+ } else if (tName.startsWith(QStringLiteral("shared.tasks"), Qt::CaseInsensitive) ||
+ tName.startsWith(QStringLiteral("shared.todo"), Qt::CaseInsensitive)) {
ownerStr = QStringLiteral("Shared");
nameStr = cName;
typeStr = QStringLiteral("Tasks");
break;
- } else if (tName.toLower().startsWith(QStringLiteral("shared.journal"))) {
+ } else if (tName.startsWith(QStringLiteral("shared.journal"), Qt::CaseInsensitive)) {
ownerStr = QStringLiteral("Shared");
nameStr = cName;
typeStr = QStringLiteral("Journal");
break;
- } else if (tName.toLower().startsWith(QStringLiteral("shared.notes"))) {
+ } else if (tName.startsWith(QStringLiteral("shared.notes"), Qt::CaseInsensitive)) {
ownerStr = QStringLiteral("Shared");
nameStr = cName;
typeStr = QStringLiteral("Notes");