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:
Vadim Zeitlin
2018-07-21 13:25:44 +02:00
parent 040e897fdb
commit 4a53b029de

View File

@@ -90,8 +90,9 @@ namespace wxPrivate
// macros
// ---------------------------------------------------------------------------
// casts [unfortunately!] needed to call some broken functions which require
// "char *" instead of "const char *"
// These macros are not used by wxWidgets itself any longer and are only
// 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 wxCSTRINGCAST (wxChar *)(const wxChar *)
#define wxMBSTRINGCAST (char *)(const char *)