minor change: buf[(size_t)pos] instead of buf.c_str()[pos]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-05 18:04:13 +00:00
parent 960ba969f9
commit 96742edfff

View File

@ -148,10 +148,10 @@ static void DefaultHnd(void *userData, const char *s, int len)
int pos;
pos = buf.Find(wxT("encoding="));
if (pos != wxNOT_FOUND)
ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf.c_str()[pos+9]);
ctx->encoding = buf.Mid(pos + 10).BeforeFirst(buf[(size_t)pos+9]);
pos = buf.Find(wxT("version="));
if (pos != wxNOT_FOUND)
ctx->version = buf.Mid(pos + 9).BeforeFirst(buf.c_str()[pos+8]);
ctx->version = buf.Mid(pos + 9).BeforeFirst(buf[(size_t)pos+8]);
}
}