add GetChars()
This commit is contained in:
parent
3339f54f50
commit
0350744a7d
|
@ -14,6 +14,22 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function GetChars
|
||||||
|
* returns a pointer to the actual character data, either 8 or
|
||||||
|
* 16 bits wide, depending on how the wxWidgets library was compiled.
|
||||||
|
* Pointer
|
||||||
|
*/
|
||||||
|
const wxChar* GetChars( wxString s )
|
||||||
|
{
|
||||||
|
#if wxCHECK_VERSION(2,9,0)
|
||||||
|
return (const wxChar*) s.wx_str();
|
||||||
|
#else
|
||||||
|
return s.GetData();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN( x, y ) ( (x) > (y) ? (y) : (x) )
|
#define MIN( x, y ) ( (x) > (y) ? (y) : (x) )
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue