← Back to team overview

kicad-developers team mailing list archive

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

 

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.

> 
>> 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
>> }
>>



Follow ups

References