comctl32/tests: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Mon May 29 11:26:51 CDT 2006


Some extraneous spaces cleaned out of this function, too.

---

Changelog:
    comctl32/tests: Write-strings warnings fix.

diff -urN a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
--- a/dlls/comctl32/tests/treeview.c	2006-05-23 17:24:33.000000000 +0100
+++ b/dlls/comctl32/tests/treeview.c	2006-05-29 17:10:11.000000000 +0100
@@ -70,25 +70,27 @@
 static void FillRoot(void)
 {
     TVINSERTSTRUCTA ins;
+    static CHAR root[]  = "Root",
+                child[] = "Child";
 
     Clear();
-    AddItem('A');    
+    AddItem('A');
     ins.hParent = TVI_ROOT;
     ins.hInsertAfter = TVI_ROOT;
     U(ins).item.mask = TVIF_TEXT;
-    U(ins).item.pszText = "Root";
+    U(ins).item.pszText = root;
     hRoot = TreeView_InsertItem(hTree, &ins);
     assert(hRoot);
-  
+
     AddItem('B');
     ins.hParent = hRoot;
     ins.hInsertAfter = TVI_FIRST;
     U(ins).item.mask = TVIF_TEXT;
-    U(ins).item.pszText = "Child";
+    U(ins).item.pszText = child;
     hChild = TreeView_InsertItem(hTree, &ins);
     assert(hChild);
     AddItem('.');
-    
+
     ok(!strcmp(sequence, "AB."), "Item creation\n");
 }
 



More information about the wine-patches mailing list