X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8650108199bf799f21e29811cddaefd579c98c88..4bc554971cb886d10b4cd72bd7b288a3c4cde763:/tests/arrays/arrays.cpp diff --git a/tests/arrays/arrays.cpp b/tests/arrays/arrays.cpp index f50901de14..819b1b7a69 100644 --- a/tests/arrays/arrays.cpp +++ b/tests/arrays/arrays.cpp @@ -424,7 +424,8 @@ void ArraysTestCase::wxStringArraySplitJoinTest() wxT("Initial page of Mozilla Firefox") wxT(""); - for (size_t i=0; i < WXSIZEOF(separators); i++) + size_t i; + for (i = 0; i < WXSIZEOF(separators); i++) { wxArrayString arr = wxSplit(str, separators[i]); CPPUNIT_ASSERT( str == wxJoin(arr, separators[i]) ); @@ -441,7 +442,7 @@ void ArraysTestCase::wxStringArraySplitJoinTest() }; wxArrayString theArr(WXSIZEOF(arr), arr); - for (size_t i=0; i < WXSIZEOF(separators); i++) + for (i = 0; i < WXSIZEOF(separators); i++) { wxString string = wxJoin(theArr, separators[i]); CPPUNIT_ASSERT( theArr == wxSplit(string, separators[i]) );