diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 16:29:25 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:48 +0200 |
commit | 69cc1ee085ebb5c35c09f50127d00ad90495d563 (patch) | |
tree | dcd42b478af9dc6aec6a1520df7fafa818945085 /sal | |
parent | 44f8989af2a114f690bea1cb92ad74435c63ffe9 (diff) |
cppcheck reduce scope of var in sal/... cbptest.cxx and cbvtest.cxx
Diffstat (limited to 'sal')
-rw-r--r-- | sal/workben/clipboardwben/testpaste/cbptest.cxx | 3 | ||||
-rw-r--r-- | sal/workben/clipboardwben/testviewer/cbvtest.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sal/workben/clipboardwben/testpaste/cbptest.cxx b/sal/workben/clipboardwben/testpaste/cbptest.cxx index 442b3728a824..73507d96079d 100644 --- a/sal/workben/clipboardwben/testpaste/cbptest.cxx +++ b/sal/workben/clipboardwben/testpaste/cbptest.cxx @@ -259,7 +259,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]; @@ -271,7 +270,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 ) { diff --git a/sal/workben/clipboardwben/testviewer/cbvtest.cxx b/sal/workben/clipboardwben/testviewer/cbvtest.cxx index 1368b34f2f1e..6cf74c5b5835 100644 --- a/sal/workben/clipboardwben/testviewer/cbvtest.cxx +++ b/sal/workben/clipboardwben/testviewer/cbvtest.cxx @@ -202,7 +202,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; WCHAR szHello[MAX_LOADSTRING]; @@ -218,7 +217,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 ) { |