forked from qt-creator/qt-creator
Utils: Rename winQPidToPid to qPidToPid
... and make it a no-op on non-Windows. Saves #ifdefs. Change-Id: Ie791f7b9f1a425325d0b889e73758c5f7f7e6ad2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -135,11 +135,7 @@ void ValgrindProcess::run(const QString &valgrindExecutable, const QStringList &
|
||||
m_localProcess.setCommand(valgrindExecutable, m_arguments);
|
||||
m_localProcess.start();
|
||||
m_localProcess.waitForStarted();
|
||||
#ifdef Q_OS_WIN
|
||||
m_pid = Utils::winQPidToPid(m_localProcess.pid());
|
||||
#else
|
||||
m_pid = m_localProcess.pid();
|
||||
#endif
|
||||
m_pid = Utils::qPidToPid(m_localProcess.pid());
|
||||
} else {
|
||||
m_remote.m_valgrindExe = valgrindExecutable;
|
||||
m_remote.m_debuggee = debuggeeExecutable;
|
||||
|
||||
Reference in New Issue
Block a user