diff options
| author | Peter Penz <[email protected]> | 2012-06-08 22:07:59 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-06-08 22:08:29 +0200 |
| commit | b2f5de974463f54023905e0979102d179eed0a00 (patch) | |
| tree | 1e257594f43ea496aa3ac8c5f74a82d589844ac7 /src/panels | |
| parent | 98a4aa10ef09087ce6498d09461036cb0ab9cb4d (diff) | |
Krazy fixes
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 16 | ||||
| -rw-r--r-- | src/panels/terminal/terminalpanel.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index a0358cb43..5d89dfa7f 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -1082,21 +1082,21 @@ KUrl PlacesItemModel::createTimelineUrl(const KUrl& url) KUrl timelineUrl; const QString path = url.pathOrUrl(); - if (path.endsWith("yesterday")) { + if (path.endsWith(QLatin1String("yesterday"))) { const QDate date = QDate::currentDate().addDays(-1); const int year = date.year(); const int month = date.month(); const int day = date.day(); timelineUrl = "timeline:/" + timelineDateString(year, month) + '/' + timelineDateString(year, month, day); - } else if (path.endsWith("thismonth")) { + } else if (path.endsWith(QLatin1String("thismonth"))) { const QDate date = QDate::currentDate(); timelineUrl = "timeline:/" + timelineDateString(date.year(), date.month()); - } else if (path.endsWith("lastmonth")) { + } else if (path.endsWith(QLatin1String("lastmonth"))) { const QDate date = QDate::currentDate().addMonths(-1); timelineUrl = "timeline:/" + timelineDateString(date.year(), date.month()); } else { - Q_ASSERT(path.endsWith("today")); + Q_ASSERT(path.endsWith(QLatin1String("today"))); timelineUrl= url; } @@ -1128,14 +1128,14 @@ KUrl PlacesItemModel::createSearchUrl(const KUrl& url) #ifdef HAVE_NEPOMUK const QString path = url.pathOrUrl(); - if (path.endsWith("documents")) { + if (path.endsWith(QLatin1String("documents"))) { searchUrl = searchUrlForTerm(Nepomuk::Query::ResourceTypeTerm(Nepomuk::Vocabulary::NFO::Document())); - } else if (path.endsWith("images")) { + } else if (path.endsWith(QLatin1String("images"))) { searchUrl = searchUrlForTerm(Nepomuk::Query::ResourceTypeTerm(Nepomuk::Vocabulary::NFO::Image())); - } else if (path.endsWith("audio")) { + } else if (path.endsWith(QLatin1String("audio"))) { searchUrl = searchUrlForTerm(Nepomuk::Query::ComparisonTerm(Nepomuk::Vocabulary::NIE::mimeType(), Nepomuk::Query::LiteralTerm("audio"))); - } else if (path.endsWith("videos")) { + } else if (path.endsWith(QLatin1String("videos"))) { searchUrl = searchUrlForTerm(Nepomuk::Query::ComparisonTerm(Nepomuk::Vocabulary::NIE::mimeType(), Nepomuk::Query::LiteralTerm("video"))); } else { diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp index dba67f1b4..889c07e45 100644 --- a/src/panels/terminal/terminalpanel.cpp +++ b/src/panels/terminal/terminalpanel.cpp @@ -74,7 +74,7 @@ void TerminalPanel::dockVisibilityChanged() // signal, we have to update m_konsolePartCurrentDirectory manually. If this // was not done, showing the panel again might not set the part's working // directory correctly. - m_konsolePartCurrentDirectory = "/"; + m_konsolePartCurrentDirectory = '/'; } } |
