pass asciistr, not utf8str, to FromAscii

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-08-06 17:53:25 +00:00
parent 44710405ff
commit ac41e143de

View File

@ -185,7 +185,7 @@ BENCHMARK_FUNC(ForCString)
BENCHMARK_FUNC(ForStringIndex) BENCHMARK_FUNC(ForStringIndex)
{ {
const wxString s = wxString::FromAscii(utf8str); const wxString s = wxString::FromAscii(asciistr);
const size_t len = s.length(); const size_t len = s.length();
for ( size_t n = 0; n < len; n++ ) for ( size_t n = 0; n < len; n++ )
{ {
@ -198,7 +198,7 @@ BENCHMARK_FUNC(ForStringIndex)
BENCHMARK_FUNC(ForStringIter) BENCHMARK_FUNC(ForStringIter)
{ {
const wxString s = wxString::FromAscii(utf8str); const wxString s = wxString::FromAscii(asciistr);
const wxString::const_iterator end = s.end(); const wxString::const_iterator end = s.end();
for ( wxString::const_iterator i = s.begin(); i != end; ++i ) for ( wxString::const_iterator i = s.begin(); i != end; ++i )
{ {
@ -211,7 +211,7 @@ BENCHMARK_FUNC(ForStringIter)
BENCHMARK_FUNC(ForStringRIter) BENCHMARK_FUNC(ForStringRIter)
{ {
const wxString s = wxString::FromAscii(utf8str); const wxString s = wxString::FromAscii(asciistr);
const wxString::const_reverse_iterator rend = s.rend(); const wxString::const_reverse_iterator rend = s.rend();
for ( wxString::const_reverse_iterator i = s.rbegin(); i != rend; ++i ) for ( wxString::const_reverse_iterator i = s.rbegin(); i != rend; ++i )
{ {