Mark WXSTRINGCAST and related macros as obsolete in a comment
Make it clear that these macros are defined for compatibility only and shouldn't be used. See https://github.com/wxWidgets/wxWidgets/pull/857
This commit is contained in:
@@ -90,8 +90,9 @@ namespace wxPrivate
|
|||||||
// macros
|
// macros
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
// casts [unfortunately!] needed to call some broken functions which require
|
// These macros are not used by wxWidgets itself any longer and are only
|
||||||
// "char *" instead of "const char *"
|
// preserved for compatibility with the user code that might be still using
|
||||||
|
// them. Do _not_ use them in the new code, just use const_cast<> instead.
|
||||||
#define WXSTRINGCAST (wxChar *)(const wxChar *)
|
#define WXSTRINGCAST (wxChar *)(const wxChar *)
|
||||||
#define wxCSTRINGCAST (wxChar *)(const wxChar *)
|
#define wxCSTRINGCAST (wxChar *)(const wxChar *)
|
||||||
#define wxMBSTRINGCAST (char *)(const char *)
|
#define wxMBSTRINGCAST (char *)(const char *)
|
||||||
|
Reference in New Issue
Block a user