diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-22 16:50:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-23 06:02:42 +0000 |
commit | b712b1f63492a311e4a51cffd516b3e202a140e6 (patch) | |
tree | 6703ded631b477680b87da3f1fe6b398c595e5f7 /dtrans/test/win32 | |
parent | 93cd7b78c29c11ccc87c19c845c6617acb834630 (diff) |
tdf#39440 cppcheck: redundantAssignment
This addresses some of cppcheck's "redundantAssignment" warnings
("Variable '<varName>' is reassigned a value before the old one
has been used").
Change-Id: I8fd2950d5aa1a3f4bd9e1c4c336abe465d1f657e
Reviewed-on: https://gerrit.libreoffice.org/17926
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dtrans/test/win32')
-rw-r--r-- | dtrans/test/win32/dnd/dndTest.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx index d0261324a89b..aae5851c1cab 100644 --- a/dtrans/test/win32/dnd/dndTest.cxx +++ b/dtrans/test/win32/dnd/dndTest.cxx @@ -122,8 +122,7 @@ HRESULT doTest() extern Reference<XMultiServiceFactory> MultiServiceFactory; DWORD WINAPI MTAFunc( void* threadData) { - HRESULT hr= S_OK; - hr= CoInitializeEx( NULL, COINIT_MULTITHREADED); + HRESULT hr= CoInitializeEx( NULL, COINIT_MULTITHREADED); ATLASSERT( FAILED(hr) ); MSG msg; // force the creation of a message queue |