compatibility fix: have wxListKey ctors from C strings so that passing string literals to functions expecting wxListKey works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bd0b594dff
commit
5abefd049e
@ -390,6 +390,10 @@ public:
|
||||
{ m_key.integer = i; }
|
||||
wxListKey(const wxString& s) : m_keyType(wxKEY_STRING)
|
||||
{ m_key.string = new wxString(s); }
|
||||
wxListKey(const char *s) : m_keyType(wxKEY_STRING)
|
||||
{ m_key.string = new wxString(s); }
|
||||
wxListKey(const wchar_t *s) : m_keyType(wxKEY_STRING)
|
||||
{ m_key.string = new wxString(s); }
|
||||
|
||||
// accessors
|
||||
wxKeyType GetKeyType() const { return m_keyType; }
|
||||
|
Loading…
Reference in New Issue
Block a user