From 806902e135b8aaec51bfa496bb4ff1e9066ea5e7 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Fri, 23 May 2014 21:11:50 +0000 Subject: [PATCH] Use QCoreApplication::applicationPid to get pid --- tags/taghelperiface.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tags/taghelperiface.cpp b/tags/taghelperiface.cpp index 4515c44f5..05f97f702 100644 --- a/tags/taghelperiface.cpp +++ b/tags/taghelperiface.cpp @@ -32,12 +32,6 @@ #include #include #include -#ifdef Q_OS_WIN -#include -#else -#include -#include -#endif #include static bool debugEnabled=false; @@ -256,11 +250,7 @@ bool TagHelperIface::startHelper() DBUG << (void *)proc; if (!helperIsRunning()) { stopHelper(); - #ifdef Q_OS_WIN - int currentPid=GetCurrentProcessId(); - #else - int currentPid=getpid(); - #endif + qint64 currentPid=QCoreApplication::applicationPid(); DBUG << "Create server"; server=new QLocalServer(this);