Android: Small cleanup in AndroidRunnerWorker

Remove unused constant and forward declaration.
Use nested namespaces.

Change-Id: Iccb7e2a836b38290da38c40532ebafc4b07c25a2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2024-07-24 13:55:56 +02:00
committed by hjk
parent 8e1491f8fa
commit 73d2249960
2 changed files with 6 additions and 17 deletions

View File

@@ -47,8 +47,7 @@ using namespace std;
using namespace std::chrono_literals; using namespace std::chrono_literals;
using namespace std::placeholders; using namespace std::placeholders;
namespace Android { namespace Android::Internal {
namespace Internal {
static const QString pidPollingScript = QStringLiteral("while [ -d /proc/%1 ]; do sleep 1; done"); static const QString pidPollingScript = QStringLiteral("while [ -d /proc/%1 ]; do sleep 1; done");
static const QRegularExpression userIdPattern("u(\\d+)_a"); static const QRegularExpression userIdPattern("u(\\d+)_a");
@@ -861,5 +860,4 @@ void AndroidRunnerWorker::onProcessIdChanged(const PidUserPair &pidUser)
} }
} }
} // namespace Internal } // namespace Android::Internal
} // namespace Android

View File

@@ -11,19 +11,11 @@
#include <utils/environment.h> #include <utils/environment.h>
#include <utils/port.h> #include <utils/port.h>
namespace Utils { namespace Android { class AndroidDeviceInfo; }
class FilePath;
class Process;
}
namespace ProjectExplorer { class RunWorker; } namespace ProjectExplorer { class RunWorker; }
namespace Utils { class Process; }
namespace Android { namespace Android::Internal {
class AndroidDeviceInfo;
namespace Internal {
const int MIN_SOCKET_HANDSHAKE_PORT = 20001;
using PidUserPair = std::pair<qint64, qint64>; using PidUserPair = std::pair<qint64, qint64>;
@@ -109,5 +101,4 @@ private:
bool m_useAppParamsForQmlDebugger = false; bool m_useAppParamsForQmlDebugger = false;
}; };
} // namespace Internal } // namespace Android::Internal
} // namespace Android