AndroidRunWorker: Remove redundant variables

Change-Id: I6677ce5d4640fdd68d3571d833f9c3651068facc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2024-02-26 20:59:11 +01:00
parent 7c98f2aa9e
commit 0114933deb

View File

@@ -819,15 +819,13 @@ void AndroidRunnerWorker::removeForwardPort(const QString &port)
void AndroidRunnerWorker::onProcessIdChanged(PidUserPair pidUser) void AndroidRunnerWorker::onProcessIdChanged(PidUserPair pidUser)
{ {
qint64 pid = pidUser.first;
qint64 user = pidUser.second;
// Don't write to m_psProc from a different thread // Don't write to m_psProc from a different thread
QTC_ASSERT(QThread::currentThread() == thread(), return); QTC_ASSERT(QThread::currentThread() == thread(), return);
qCDebug(androidRunWorkerLog) << "Process ID changed from:" << m_processPID qCDebug(androidRunWorkerLog) << "Process ID changed from:" << m_processPID
<< "to:" << pid; << "to:" << pidUser.first;
m_processPID = pid; m_processPID = pidUser.first;
m_processUser = user; m_processUser = pidUser.second;
if (pid == -1) { if (m_processPID == -1) {
emit remoteProcessFinished(QLatin1String("\n\n") + Tr::tr("\"%1\" died.") emit remoteProcessFinished(QLatin1String("\n\n") + Tr::tr("\"%1\" died.")
.arg(m_packageName)); .arg(m_packageName));
// App died/killed. Reset log, monitor, jdb & gdbserver/lldb-server processes. // App died/killed. Reset log, monitor, jdb & gdbserver/lldb-server processes.