[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [simon/mac] simonlib/simoncontextdetection: Removing unnecessary #ifdefs
From:       Peter Grasch <me () bedahr ! org>
Date:       2014-03-31 19:09:27
Message-ID: E1WUhaJ-000362-By () scm ! kde ! org
[Download RAW message or body]

Git commit 2bf3f5547fd08ee6665536e53a30b4316c864a13 by Peter Grasch.
Committed on 31/03/2014 at 18:57.
Pushed by grasch into branch 'mac'.

Removing unnecessary #ifdefs

M  +0    -12   simonlib/simoncontextdetection/windowsprocessinfogatherer.cpp

http://commits.kde.org/simon/2bf3f5547fd08ee6665536e53a30b4316c864a13

diff --git a/simonlib/simoncontextdetection/windowsprocessinfogatherer.cpp \
b/simonlib/simoncontextdetection/windowsprocessinfogatherer.cpp index 2112983..a494aab 100644
--- a/simonlib/simoncontextdetection/windowsprocessinfogatherer.cpp
+++ b/simonlib/simoncontextdetection/windowsprocessinfogatherer.cpp
@@ -19,15 +19,11 @@
 
 #include "windowsprocessinfogatherer.h"
 
-#ifdef Q_OS_WIN32
-
 #include "windows.h"
 #include "tchar.h"
 #include "psapi.h"
 #include <QDebug>
 
-#endif
-
 //WINAPI:
 //krazy:excludeall=captruefalse
 
@@ -38,8 +34,6 @@ WindowsProcessInfoGatherer::WindowsProcessInfoGatherer(QObject *parent) :
 
 void WindowsProcessInfoGatherer::checkCurrentProcesses()
 {
-#ifdef Q_OS_WIN32
-
     DWORD aProcesses[1024], cbNeeded, cProcesses;
     TCHAR szProcessName[MAX_PATH];
     HANDLE hProcess;
@@ -93,14 +87,10 @@ void WindowsProcessInfoGatherer::checkCurrentProcesses()
             CloseHandle( hProcess );
         }
     }
-
-#endif
 }
 
 void WindowsProcessInfoGatherer::checkActiveWindow()
 {
-#ifdef Q_OS_WIN32
-
     HWND hwnd;
     DWORD activeWindowProcess;
     HANDLE hProcess;
@@ -162,8 +152,6 @@ void WindowsProcessInfoGatherer::checkActiveWindow()
             CloseHandle( hProcess );
         }
     }
-
-#endif
 }
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic