forked from qt-creator/qt-creator
Qnx: Code cosmetics
Change-Id: Ibc7dc07166c79d65005d88a297916c54d30168cb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user