Commit e611ba52 authored by Tobias Hunger's avatar Tobias Hunger

DeviceSupport: Simplify code a bit

Change-Id: I2daca38612636b2eeb7407c32f2791b3c350677a
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 7d76dd00
......@@ -208,7 +208,7 @@ static QList<DeviceProcessItem> getLocalProcessesUsingPs()
const int pidSep = line.indexOf(blank);
const int cmdSep = pidSep != -1 ? line.indexOf(blank, pidSep + 1) : -1;
if (cmdSep > 0) {
const int argsSep = cmdSep != -1 ? line.indexOf(blank, cmdSep + 1) : -1;
const int argsSep = line.indexOf(blank, cmdSep + 1);
DeviceProcessItem procData;
procData.pid = line.leftRef(pidSep).toInt();
procData.cmdLine = line.mid(cmdSep + 1);
......
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