Fix constness of some member functions of wxUString
This commit is contained in:
parent
daf944909c
commit
86dd0cd2a2
@ -134,9 +134,9 @@ public:
|
|||||||
return utf16_str();
|
return utf16_str();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
wchar_t *wc_str() const
|
const wchar_t *wc_str() const
|
||||||
{
|
{
|
||||||
return (wchar_t*) c_str();
|
return c_str();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -154,18 +154,18 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_UNICODE_UTF8
|
#if wxUSE_UNICODE_UTF8
|
||||||
wxScopedCharBuffer wx_str()
|
wxScopedCharBuffer wx_str() const
|
||||||
{
|
{
|
||||||
return utf8_str();
|
return utf8_str();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#if SIZEOF_WCHAR_T == 2
|
#if SIZEOF_WCHAR_T == 2
|
||||||
wxScopedWCharBuffer wx_str()
|
wxScopedWCharBuffer wx_str() const
|
||||||
{
|
{
|
||||||
return utf16_str();
|
return utf16_str();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
const wchar_t* wx_str()
|
const wchar_t* wx_str() const
|
||||||
{
|
{
|
||||||
return c_str();
|
return c_str();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user