Michael Stefaniuc : mstml/tests: Merge two adjacent if blocks with identical condition (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 9 08:43:17 CDT 2015


Module: wine
Branch: master
Commit: 533bb9f390d8026f6885e077b92d200a9b2c8a56
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=533bb9f390d8026f6885e077b92d200a9b2c8a56

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Mar  9 10:25:34 2015 +0100

mstml/tests: Merge two adjacent if blocks with identical condition (PVS-Studio).

---

 dlls/mshtml/tests/htmldoc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index 08c31ad..f131563 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -6509,11 +6509,10 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
 
     editmode = TRUE;
 
-    if(loaded)
+    if(loaded) {
         load_state = LD_DOLOAD;
-
-    if(loaded)
         SET_EXPECT(GetClassID);
+    }
     SET_EXPECT(SetStatusText);
     SET_EXPECT(Exec_ShellDocView_37);
     SET_EXPECT(GetHostInfo);




More information about the wine-cvs mailing list