Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -482,7 +482,8 @@ static int UnknownEncodingHnd(void * WXUNUSED(encodingHandlerData),
|
||||
// We must build conversion table for expat. The easiest way to do so
|
||||
// is to let wxCSConv convert as string containing all characters to
|
||||
// wide character representation:
|
||||
wxCSConv conv(wxString(name, wxConvLibc));
|
||||
wxString str(name, wxConvLibc);
|
||||
wxCSConv conv(str);
|
||||
char mbBuf[2];
|
||||
wchar_t wcBuf[10];
|
||||
size_t i;
|
||||
@@ -499,7 +500,7 @@ static int UnknownEncodingHnd(void * WXUNUSED(encodingHandlerData),
|
||||
}
|
||||
info->map[i+1] = (int)wcBuf[0];
|
||||
}
|
||||
|
||||
|
||||
info->data = NULL;
|
||||
info->convert = NULL;
|
||||
info->release = NULL;
|
||||
|
Reference in New Issue
Block a user