Android: Fix compile with Qt6.2

Just removed redundant check.
Amends 2d01003c4e.

Change-Id: Ie7ce3836804199bcb561b8c34a70814856a4033a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
This commit is contained in:
Christian Stenger
2023-04-17 06:36:31 +02:00
parent bbe61a965d
commit bb551f4b60

View File

@@ -122,7 +122,7 @@ static void findProcessPIDAndUser(QFutureInterface<PidUserPair> &fi, QStringList
if (!out.isEmpty()) {
QRegularExpressionMatch match;
qsizetype matchPos = out.indexOf(userIdPattern, 0, &match);
if (matchPos >= 0 && match.hasCaptured(1) && match.capturedLength(1) > 0) {
if (matchPos >= 0 && match.capturedLength(1) > 0) {
bool ok = false;
processUser = match.captured(1).toInt(&ok);
if (!ok)