Nikolay Sivov : comctl32/tests: Remove useless rand() calls (cppcheck).

Alexandre Julliard julliard at winehq.org
Tue May 16 16:05:10 CDT 2017


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue May 16 11:27:21 2017 +0300

comctl32/tests: Remove useless rand() calls (cppcheck).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/header.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index defd635..ae75199 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1560,7 +1560,6 @@ static void test_header_order (void)
     {
         hdi.lParam = i;
         SendMessageA(hWndHeader, HDM_INSERTITEMA, rand1[i], (LPARAM)&hdi);
-        rand();
     }
     check_order(ids1, ord1, 5, "insert without iOrder");
 
@@ -1570,7 +1569,6 @@ static void test_header_order (void)
         hdi.lParam = i + 5;
         hdi.iOrder = rand2[i];
         SendMessageA(hWndHeader, HDM_INSERTITEMA, rand3[i], (LPARAM)&hdi);
-        rand(); rand();
     }
     check_order(ids2, ord2, 10, "insert with order");
 
@@ -1579,7 +1577,6 @@ static void test_header_order (void)
     {
         hdi.iOrder = rand5[i];
         SendMessageA(hWndHeader, HDM_SETITEMA, rand4[i], (LPARAM)&hdi);
-        rand(); rand();
     }
     check_order(ids2, ord3, 10, "setitems changing order");
 




More information about the wine-cvs mailing list