No changes, just simplify the code using wx2stc() a little.
Assign wx2stc() return value to a suitably const variable instead of using ugly casts to get rid of constness. Also use wxCharBuffer/char* explicitly inside explicit wxUSE_UNICODE checks, using wxWX2MBbuf here doesn't gain us anything and just confuses the reader of this code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
extern wxString stc2wx(const char* str);
|
||||
extern wxString stc2wx(const char* str, size_t len);
|
||||
extern const wxWX2MBbuf wx2stc(const wxString& str);
|
||||
extern wxCharBuffer wx2stc(const wxString& str);
|
||||
|
||||
// This function takes both wxString and wxCharBuffer because it uses either
|
||||
// one or the other of them depending on the build mode. In Unicode it uses the
|
||||
@@ -40,7 +40,7 @@ inline wxString stc2wx(const char* str) {
|
||||
inline wxString stc2wx(const char* str, size_t len) {
|
||||
return wxString(str, len);
|
||||
}
|
||||
inline const wxWX2MBbuf wx2stc(const wxString& str) {
|
||||
inline const char* wx2stc(const wxString& str) {
|
||||
return str.mbc_str();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user