Commit 202cceeb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to for(...:...)

parent 4bf0477e
......@@ -183,7 +183,7 @@ UniqueAppWatcher::UniqueAppWatcher(UniqueAppHandlerFactoryBase *factory, Plugin
getProcessesIdForName(plugin->objectName(), pids);
const int mypid = getpid();
bool processExits = false;
foreach (int pid, pids) {
for (int pid : qAsConst(pids)) {
if (mypid != pid) {
processExits = true;
break;
......
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