kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22921
Re: wxT()
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Tue, 2 Feb 2016 11:10:51 -0500
-
In-reply-to:
<CAJQyTMAZDCkuGPa+3t8CBvey25pNO2kCtRU6uH=k7o4mc-=-Kg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
Here is the comment in wx/chartypes.h (version 3.0.2)
/*
wxT ("wx text") macro turns a literal string constant into a wide char
constant. It is mostly unnecessary with wx 2.9 but defined for
compatibility.
*/
I would have thought that wxT() expands to nothing since 2.9.0 but that
not the case. What makes me nervous is the "mostly unnecessary"
statement. What does "mostly unnecessary" mean? I'm fine with getting
rid of the wxT macros but I'd rather not do it as one huge patch. We
can remove these as we find them in the same way that we update the
copyright dates as we modify the source files.
On 2/2/2016 10:59 AM, Simon Wells wrote:
> While looking up something in the wxwidgets documentation i noticed
>
> "Note that since wxWidgets 2.9.0 you shouldn't use wxT() anymore in
> your program sources (it was previously required if you wanted to
> support Unicode)."
>
> As kicad only supports wxWidgets 3 is there a plan to change the 4247
> instances of this in the tree?
>
> thanks
>
> Simon
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References
-
wxT()
From: Simon Wells, 2016-02-02