Fix constness of some member functions of wxUString

This commit is contained in:
ARATA Mizuki 2016-02-17 23:40:07 +09:00
parent daf944909c
commit 86dd0cd2a2

View File

@ -134,9 +134,9 @@ public:
return utf16_str();
}
#else
wchar_t *wc_str() const
const wchar_t *wc_str() const
{
return (wchar_t*) c_str();
return c_str();
}
#endif
@ -154,18 +154,18 @@ public:
}
#if wxUSE_UNICODE_UTF8
wxScopedCharBuffer wx_str()
wxScopedCharBuffer wx_str() const
{
return utf8_str();
}
#else
#if SIZEOF_WCHAR_T == 2
wxScopedWCharBuffer wx_str()
wxScopedWCharBuffer wx_str() const
{
return utf16_str();
}
#else
const wchar_t* wx_str()
const wchar_t* wx_str() const
{
return c_str();
}