forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
d2769f3003
commit
cbdf673696
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user