Commit b4346195 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

katesessionmanager: Do not create QStringLiteral for config group write

We have a `const char*` overload and the QString overload only calls this one.
Consequently, creating a QStringLiteral is not needed.

void KConfigGroup::writeEntry(const QString &key, const QString &value, WriteConfigFlags flags)
    writeEntry(key.toUtf8().constData(), value, flags);
parent ec25d9f6
Pipeline #260007 failed with stage
in 46 minutes and 48 seconds
......@@ -643,8 +643,8 @@ void KateSessionManager::updateJumpListActions(const QStringList &sessionList)
const QString &session =;
KConfigGroup grp = df->actionGroup(action);
grp.writeEntry(QStringLiteral("Name"), session);
grp.writeEntry(QStringLiteral("Exec"), QStringLiteral("kate -n -s %1").arg(KShell::quoteArg(session)));
grp.writeEntry("Name", session);
grp.writeEntry("Exec", QStringLiteral("kate -n -s %1").arg(KShell::quoteArg(session)));
df->desktopGroup().writeXdgListEntry("Actions", newActions);
Supports Markdown
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