From 96742edfff8d69158ee0e9cb34eb37912d1a7d10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 5 May 2001 18:04:13 +0000 Subject: [PATCH] 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 --- contrib/src/xml/xmlexpat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/src/xml/xmlexpat.cpp b/contrib/src/xml/xmlexpat.cpp index f16fcfaa66..358d45a05b 100644 --- a/contrib/src/xml/xmlexpat.cpp +++ b/contrib/src/xml/xmlexpat.cpp @@ -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]); } } -- 2.47.2