diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-28 21:46:13 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-29 15:41:50 +0100 |
commit | 9ef8bc31776e3f4f1b6b1b0706882da5c579b090 (patch) | |
tree | faf0793eed82d83416c58a734ff78133faec2de3 /dtrans | |
parent | Remove double line spacing and unused code. (diff) | |
download | core-9ef8bc31776e3f4f1b6b1b0706882da5c579b090.tar.gz core-9ef8bc31776e3f4f1b6b1b0706882da5c579b090.zip |
Remove unused variable errMsg and dead code.
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/test/win32/dnd/dndTest.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx index 34080fb46efe..9aff6b8486dd 100644 --- a/dtrans/test/win32/dnd/dndTest.cxx +++ b/dtrans/test/win32/dnd/dndTest.cxx @@ -64,20 +64,13 @@ using namespace com::sun::star::datatransfer::dnd; using namespace com::sun::star::datatransfer::dnd::DNDConstants; using namespace rtl; -// defined in atlwindow.hxx -// #define WM_SOURCE_INIT WM_APP+100 -// #define WM_SOURCE_STARTDRAG WM_APP+101 #define WM_CREATE_MTA_WND HRESULT doTest(); DWORD WINAPI MTAFunc( void* threadData); Reference< XMultiServiceFactory > MultiServiceFactory; -//int APIENTRY WinMain(HINSTANCE hInstance, -// HINSTANCE hPrevInstance, -// LPSTR lpCmdLine, -// int nCmdShow) -//int _tmain( int argc, TCHAR *argv[ ], TCHAR *envp[ ] ) + int main( int argc, char *argv[ ], char *envp[ ] ) { HRESULT hr; @@ -93,8 +86,6 @@ int main( int argc, char *argv[ ], char *envp[ ] ) if( FAILED(hr=doTest())) { _com_error err( hr); - const TCHAR * errMsg= err.ErrorMessage(); -// MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR); } @@ -160,8 +151,7 @@ DWORD WINAPI MTAFunc( void* threadData) RECT pos={0, 406, 300, 605}; AWindow win(_T("DnD, full MTA"), GetCurrentThreadId(), pos, false, true); -// ThreadData data= *( ThreadData*)pParams; -// SetEvent(data.evtThreadReady); + while( GetMessage(&msg, (HWND)NULL, 0, 0) ) { switch( msg.message) |