Qnx: Code cosmetics

Change-Id: Ibc7dc07166c79d65005d88a297916c54d30168cb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-09-16 13:34:30 +02:00
parent c2d49bfa5f
commit 03983a2648
7 changed files with 44 additions and 48 deletions

View File

@@ -71,6 +71,8 @@ using namespace Utils;
namespace Qnx {
namespace Internal {
const char QNX_DEBUG_EXECUTABLE[] = "pdebug";
static QStringList searchPaths(Kit *kit)
{
auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(kit));
@@ -107,7 +109,7 @@ public:
QStringList arguments;
if (portsGatherer->useGdbServer()) {
int pdebugPort = portsGatherer->gdbServer().port();
r.executable = FilePath::fromString(Constants::QNX_DEBUG_EXECUTABLE);
r.executable = FilePath::fromString(QNX_DEBUG_EXECUTABLE);
arguments.append(QString::number(pdebugPort));
}
if (portsGatherer->useQmlServer()) {
@@ -201,7 +203,7 @@ public:
const int pdebugPort = portsGatherer->gdbServer().port();
Runnable r;
r.executable = FilePath::fromString(Constants::QNX_DEBUG_EXECUTABLE);
r.executable = FilePath::fromString(QNX_DEBUG_EXECUTABLE);
r.commandLineArguments = QString::number(pdebugPort);
doStart(r, runControl->device());
});