From: Václav Slavík Date: Wed, 27 Jun 2007 20:50:15 +0000 (+0000) Subject: compatibility fix: have wxListKey ctors from C strings so that passing string literal... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5abefd049eaed7d83ed60ddf2750bea830ce06b6 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 --- 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; }