Clang: Replace macro usage with HostOsInfo

Change-Id: Ie2d02785a6f06447a270170d12f580fa1704b7ce
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Orgad Shaneh
2016-09-10 22:56:29 +03:00
committed by Orgad Shaneh
parent d2769f3003
commit cbdf673696

View File

@@ -30,6 +30,8 @@
#include "cmbregistertranslationunitsforeditormessage.h"
#include "cmbunregistertranslationunitsforeditormessage.h"
#include <utils/hostosinfo.h>
#include <QCoreApplication>
#include <QMetaMethod>
#include <QProcess>
@@ -180,13 +182,10 @@ void ConnectionClient::endProcess(QProcess *process)
void ConnectionClient::terminateProcess(QProcess *process)
{
Q_UNUSED(process)
#ifndef Q_OS_WIN32
if (isProcessIsRunning()) {
if (!Utils::HostOsInfo::isWindowsHost() && isProcessIsRunning()) {
process->terminate();
process->waitForFinished();
}
#endif
}
void ConnectionClient::killProcess(QProcess *process)