diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-05-04 23:09:26 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-05-05 08:36:50 +0200 |
commit | 0a4faa821cf6c4a573c4182b0de0e80f54c99baf (patch) | |
tree | ad1d0fde1c457815e1ba8c34ca815a639d70b8bc /src/plugins/projectexplorer/applicationlauncher.cpp | |
parent | 3000b3b956e64b85e7ad9a267c1e7fe72e2f3061 (diff) |
ProjectExplorer: Remove one #ifdef
Use Utils::qPidToPid instead of rewriting it.
Change-Id: Iab95373aae8ae406af4e54f3804b7e016b4834f9
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/projectexplorer/applicationlauncher.cpp')
-rw-r--r-- | src/plugins/projectexplorer/applicationlauncher.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/plugins/projectexplorer/applicationlauncher.cpp b/src/plugins/projectexplorer/applicationlauncher.cpp index 6464d536db..102c4751e9 100644 --- a/src/plugins/projectexplorer/applicationlauncher.cpp +++ b/src/plugins/projectexplorer/applicationlauncher.cpp @@ -184,20 +184,13 @@ bool ApplicationLauncher::isRunning() const qint64 ApplicationLauncher::applicationPID() const { - qint64 result = 0; if (!isRunning()) - return result; + return 0; - if (d->m_currentMode == Console) { - result = d->m_consoleProcess.applicationPID(); - } else { -#ifdef Q_OS_WIN - result = (qint64)d->m_guiProcess.pid()->dwProcessId; -#else - result = (qint64)d->m_guiProcess.pid(); -#endif - } - return result; + if (d->m_currentMode == Console) + return d->m_consoleProcess.applicationPID(); + else + return Utils::qPidToPid(d->m_guiProcess.pid()); } void ApplicationLauncher::guiProcessError() |