From 5abefd049eaed7d83ed60ddf2750bea830ce06b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 27 Jun 2007 20:50:15 +0000 Subject: [PATCH] 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 --- include/wx/list.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/list.h b/include/wx/list.h index a30e5b93c4..79f40cd077 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -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; } -- 2.45.2