summaryrefslogtreecommitdiff
path: root/sal/workben
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 16:26:57 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:48 +0200
commit44f8989af2a114f690bea1cb92ad74435c63ffe9 (patch)
treede602e626a749e1ecc5722346468ca1733ad7056 /sal/workben
parentb07fff32c683f55e6410712880b5302baa44da73 (diff)
cppcheck reduce scope of var in sal/...cbcpytest.cxx
Diffstat (limited to 'sal/workben')
-rw-r--r--sal/workben/clipboardwben/testcopy/cbcpytest.cxx20
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);
// Menüauswahlen analysieren:
switch( wmId )
{