added char_str() and wchar_str() methods to wxString for obtaining char*/wchar_t* pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,6 +30,12 @@ Changes in behaviour which may result in compilation errors
|
||||
in vast majority of cases because of conversion operators, but it can break
|
||||
code that depends on the result being wxChar.
|
||||
|
||||
- The value returned by wxString::c_str() cannot be casted to non-const char*
|
||||
or wchar_t* anymore. The solution is to use newly added wxString methods
|
||||
char_str() (which returns a buffer convertible to char*) or wchar_str()
|
||||
(which returns a buffer convertible to wchar_t*). These methods are
|
||||
available in wxWidgets 2.8 series beginning with 2.8.4 as well.
|
||||
|
||||
- The value returned by wxString::operator[] or wxString::iterator cannot be
|
||||
used in switch statements anymore, because it's a class instance. Code like
|
||||
this won't compile:
|
||||
|
Reference in New Issue
Block a user