summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2015-10-25 14:37:11 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-10-25 22:31:44 +0000
commit0b018d202dfcf4bb16b708e10085a4146243b0a0 (patch)
tree4a00a62a88666944f6e7178ab70c497a090becc2 /dtrans
parentce463679a5a362d5c3f7c146f70b6be838ddbb2d (diff)
tdf#39440: fix several warnings reported by cppcheck
Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae Reviewed-on: https://gerrit.libreoffice.org/19587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/workbench/test_wincb.cxx2
-rw-r--r--dtrans/source/win32/workbench/testmarshal.cxx2
-rw-r--r--dtrans/test/win32/dnd/atlwindow.cxx1
3 files changed, 2 insertions, 3 deletions
diff --git a/dtrans/source/win32/workbench/test_wincb.cxx b/dtrans/source/win32/workbench/test_wincb.cxx
index 8eb355de6d7b..551b798590e5 100644
--- a/dtrans/source/win32/workbench/test_wincb.cxx
+++ b/dtrans/source/win32/workbench/test_wincb.cxx
@@ -206,7 +206,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
// threaded apartment we need a message loop to deliver
// messages to our XTDataObject
//HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED );
- HRESULT hr = CoInitialize( NULL );
+ (void)CoInitialize( NULL );
char buff[6];
diff --git a/dtrans/source/win32/workbench/testmarshal.cxx b/dtrans/source/win32/workbench/testmarshal.cxx
index b3fd58f61bda..4a5de8fcad4f 100644
--- a/dtrans/source/win32/workbench/testmarshal.cxx
+++ b/dtrans/source/win32/workbench/testmarshal.cxx
@@ -68,7 +68,7 @@ unsigned int _stdcall ThreadProc(LPVOID pParam)
WaitForSingleObject( g_hEvtThreadWakeup, INFINITE );
- IDataObject* pIDo;
+ IDataObject* pIDo = NULL;
#ifdef RAW_MARSHALING
diff --git a/dtrans/test/win32/dnd/atlwindow.cxx b/dtrans/test/win32/dnd/atlwindow.cxx
index 35e2cb5b1aca..e7039e204d1d 100644
--- a/dtrans/test/win32/dnd/atlwindow.cxx
+++ b/dtrans/test/win32/dnd/atlwindow.cxx
@@ -139,7 +139,6 @@ LRESULT AWindow::OnMouseAction(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
LRESULT AWindow::OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
- HRESULT hr;
USES_CONVERSION;
KillTimer( 1);
if(m_xDragSource.is())