Compilation fix for wxUSE_UNICODE=0 build after wxUSE_STL=1 fix.
The result of wxString::mb_str() can't be converted to wxScopedCharBuffer in non-Unicode build but converting it to wxCharBuffer is always fine (though slightly less efficient). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bbd65eb803
commit
d7a46c4eb8
@ -2493,7 +2493,7 @@ static inline unsigned XRCIdHash(const char *str_id)
|
||||
|
||||
static void XRCID_Assign(const wxString& str_id, int value)
|
||||
{
|
||||
wxScopedCharBuffer buf_id(str_id.mb_str());
|
||||
const wxCharBuffer buf_id(str_id.mb_str());
|
||||
const unsigned index = XRCIdHash(buf_id);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user