summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-28 21:46:13 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-29 15:41:50 +0100
commit9ef8bc31776e3f4f1b6b1b0706882da5c579b090 (patch)
treefaf0793eed82d83416c58a734ff78133faec2de3 /dtrans
parentac3628a412f37cc03ddc65d271db224a3100045b (diff)
Remove unused variable errMsg and dead code.
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/test/win32/dnd/dndTest.cxx14
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)