diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 16:26:57 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:48 +0200 |
commit | 44f8989af2a114f690bea1cb92ad74435c63ffe9 (patch) | |
tree | de602e626a749e1ecc5722346468ca1733ad7056 /sal | |
parent | b07fff32c683f55e6410712880b5302baa44da73 (diff) |
cppcheck reduce scope of var in sal/...cbcpytest.cxx
Diffstat (limited to 'sal')
-rw-r--r-- | sal/workben/clipboardwben/testcopy/cbcpytest.cxx | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sal/workben/clipboardwben/testcopy/cbcpytest.cxx b/sal/workben/clipboardwben/testcopy/cbcpytest.cxx index b9f3b64b45b3..5db57eff82df 100644 --- a/sal/workben/clipboardwben/testcopy/cbcpytest.cxx +++ b/sal/workben/clipboardwben/testcopy/cbcpytest.cxx @@ -107,23 +107,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HACCEL hAccelTable; HRESULT hr = E_FAIL; - /* - g_hEvent = CreateEvent( 0, - FALSE, - FALSE, - NULL - ); - - g_bEnd = FALSE; - - _beginthreadex( ThreadProc, - 0, - NULL, - 0, - 0, - NULL ); - */ - // it's important to initialize ole // in order to use the clipboard #ifdef USE_MTACB @@ -247,7 +230,6 @@ BOOL InitInstance( HINSTANCE hInstance, int nCmdShow ) LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId; - int wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR szHello[MAX_LOADSTRING]; @@ -259,7 +241,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { case WM_COMMAND: wmId = LOWORD(wParam); - wmEvent = HIWORD(wParam); + int wmEvent = HIWORD(wParam); // Menauswahlen analysieren: switch( wmId ) { |