Commit 0e785951 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Use QLatin1String/QLatin1Char + fix usage

QString::replace/remove
parent 5ff12878
......@@ -58,7 +58,7 @@ AppEntry::AppEntry(AbstractModel *owner, const QString &id) : AbstractEntry(owne
{
const QUrl url(id);
if (url.scheme() == QStringLiteral("preferred")) {
if (url.scheme() == QLatin1String("preferred")) {
m_service = defaultAppByName(url.host());
m_id = id;
} else {
......
......@@ -156,7 +156,7 @@ void ContainmentInterface::addLauncher(QObject *appletInterface, ContainmentInte
QQuickItem *rootItem = nullptr;
foreach(QQuickItem *item, gObj->childItems()) {
if (item->objectName() == QStringLiteral("folder")) {
if (item->objectName() == QLatin1String("folder")) {
rootItem = item;
break;
......
......@@ -637,7 +637,7 @@ void KAStatsFavoritesModel::setFavoriteOn(const QString &id, const QString &acti
qCDebug(KICKER_DEBUG) << "%%%%%%%%%%% Activity is" << activityId;
if (activityId.isEmpty() || activityId == QLatin1String(":any") ||
activityId == QStringLiteral(":global") ||
activityId == QLatin1String(":global") ||
activityId == m_activities->currentActivity()) {
d->m_ignoredItems << url;
}
......
......@@ -319,9 +319,9 @@ AbstractEntry *SimpleFavoritesModel::favoriteFromId(const QString &id)
const QUrl url(id);
const QString &s = url.scheme();
if ((s.isEmpty() && id.contains(QStringLiteral(".desktop"))) || s == QStringLiteral("preferred")) {
if ((s.isEmpty() && id.contains(QLatin1String(".desktop"))) || s == QLatin1String("preferred")) {
return new AppEntry(this, id);
} else if (s == QStringLiteral("ktp")) {
} else if (s == QLatin1String("ktp")) {
return new ContactEntry(this, id);
} else if (url.isValid() && !url.scheme().isEmpty()) {
return new FileEntry(this, url);
......
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