forked from qt-creator/qt-creator
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:
@@ -122,7 +122,7 @@ static void findProcessPIDAndUser(QFutureInterface<PidUserPair> &fi, QStringList
|
|||||||
if (!out.isEmpty()) {
|
if (!out.isEmpty()) {
|
||||||
QRegularExpressionMatch match;
|
QRegularExpressionMatch match;
|
||||||
qsizetype matchPos = out.indexOf(userIdPattern, 0, &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;
|
bool ok = false;
|
||||||
processUser = match.captured(1).toInt(&ok);
|
processUser = match.captured(1).toInt(&ok);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
Reference in New Issue
Block a user