kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03845
Re: GetChars() && Assertion
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"emmedics4" <marco.serantoni@...>
-
Date:
Mon, 28 Dec 2009 15:32:51 -0000
-
In-reply-to:
<4B385D81.5070500@...>
-
User-agent:
eGroups-EW/0.82
>Under Linux , currently i am using this version (not committed, because tested only with Ubuntu 9.10)
>/**
> * Function GetChars
> * returns a pointer to the actual character data, either 8 or
> * 16 bits wide, depending on how the wxWidgets library was compiled.
> */
>static inline const wxChar* GetChars( wxString s )
>{
>#if wxCHECK_VERSION(2,9,0)
>// return (const wxChar*) s.wx_str();
> return (const wxChar*) s.c_str();
>#else
> return s.GetData();
>#endif
>}
I've found GetChars() the macros.h definition after.
i've tested your change too and seems to work great also in my case..
--
Marco
References