← Back to team overview

kicad-developers team mailing list archive

Re: wxString conversion issues in pcbnew/netlist.cpp [PATCH]

 

On 8/13/2014 3:53 PM, Wayne Stambaugh wrote:
> On 8/13/2014 2:23 PM, Andrew Zonenberg wrote:
>> Hmm, yes that should do the conversion inline.
>>
>> Updated patch attached, tested on Debian wx 2.8.
> 
> I just tested this patch on Windows with wxWidgets 3.0.1 and it appears
> to be working properly.  I'll go ahead and commit it if there are no
> objections or someone else is already on it.

I just committed this patch.  Thank you Andrew.  Good catch.

Wayne

> 
>>
>>> static inline const wxChar* GetChars( const wxString& s )
>>> {
>>> #if wxCHECK_VERSION( 2, 9, 0 )
>>>     return (const wxChar*) s.c_str();
>>> #else
>>>     return s.GetData();
>>> #endif
>>> }
>>>



References