]> git.saurik.com Git - wxWidgets.git/commitdiff
compatibility fix: have wxListKey ctors from C strings so that passing string literal...
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 27 Jun 2007 20:50:15 +0000 (20:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 27 Jun 2007 20:50:15 +0000 (20:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/list.h

index a30e5b93c41c86ca7a56663b2cfa5d289fd036d7..79f40cd077fe22f8d7dd4b199825e780e759fc1a 100644 (file)
@@ -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; }