X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa3b08caf17a6310540d623b6ce508c201efb9a5..479647105b2ad7d4016b04aefcf2021daed922a1:/tests/regex/regextest.cpp diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index 8988557568..ef63306560 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -178,8 +178,9 @@ wxString RegExTestCase::Conv(const char *str) // void RegExTestCase::parseFlags(const wxString& flags) { - for (const wxChar *p = flags; *p; p++) { - switch (*p) { + for ( wxString::const_iterator p = flags.begin(); p != flags.end(); ++p ) + { + switch ( (*p).GetValue() ) { // noop case '-': break;