From b712b1f63492a311e4a51cffd516b3e202a140e6 Mon Sep 17 00:00:00 2001
From: Michael Weghorn <m.weghorn@posteo.de>
Date: Sat, 22 Aug 2015 16:50:56 +0200
Subject: 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>
---
 dtrans/test/win32/dnd/dndTest.cxx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'dtrans/test')

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
-- 
cgit