From 60dacae204dacc2f19cbb0553ac5bd05ab0fed1c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Apr 2023 14:25:27 +0200 Subject: [PATCH] Make it more clear that wxT_2() is obsolete Say it explicitly and remove example of its use which shouldn't needed any longer. --- interface/wx/chartype.h | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/interface/wx/chartype.h b/interface/wx/chartype.h index 7788195bee..b4f14d1767 100644 --- a/interface/wx/chartype.h +++ b/interface/wx/chartype.h @@ -31,25 +31,11 @@ #define wxT(string) /** - Compatibility macro which expands to wxT() in wxWidgets 2 only. + Obsolete macro which simply expands to its argument. - This macro can be used in code which needs to compile with both - wxWidgets 2 and 3 versions, in places where the wx2 API requires a Unicode string - (in Unicode build) but the wx3 API only accepts a standard narrow - string, as in e.g. wxCmdLineEntryDesc structure objects initializers. - - Example of use: - @code - const wxCmdLineEntryDesc cmdLineDesc[] = - { - { wxCMD_LINE_SWITCH, wxT_2("q"), wxT_2("quiet"), - wxT_2("Don't output verbose messages") }, - wxCMD_LINE_DESC_END - }; - @endcode - - Without @c wxT_2 the code above wouldn't compile with wxWidgets 2, but using @c - wxT instead, it wouldn't compile with wxWidgets 3. + This macro could be used in the code which needed to compile with both + wxWidgets 2 and 3 versions in some rare circumstances. It is still provided + for compatibility but serves no purpose any longer. @see wxT()