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);