From dc098f1ae1b29ce5f6712c2aed6b334a4561bd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Fri, 3 May 2024 15:47:39 +0100 Subject: [PATCH] Use initializer list --- lib/kprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kprocess.cpp b/lib/kprocess.cpp index 33e79a13..e2ab2430 100644 --- a/lib/kprocess.cpp +++ b/lib/kprocess.cpp @@ -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)