Skip to content

Commit

Permalink
Use initializer list
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-pereira committed May 3, 2024
1 parent b218e9e commit dc098f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void KProcess::setNextOpenMode(QIODevice::OpenMode mode)

void KProcess::clearEnvironment()
{
setEnvironment(QStringList() << QString::fromLatin1(DUMMYENV));
setEnvironment(QStringList{QString::fromLatin1(DUMMYENV)});
}

void KProcess::setEnv(const QString &name, const QString &value, bool overwrite)
Expand Down

0 comments on commit dc098f1

Please sign in to comment.