From: Julian Smart Date: Wed, 12 Apr 2006 13:06:05 +0000 (+0000) Subject: Applied patch [ 1211299 ] Minor mod to wxClassInfo to improve usability X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0c06c9839c0ca2f5857ed336bcbfd98031f97f08 Applied patch [ 1211299 ] Minor mod to wxClassInfo to improve usability David Falkinder git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/object.h b/include/wx/object.h index b181ed0a84..0123f40fb6 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -65,7 +65,8 @@ public: ~wxClassInfo(); - wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; } + wxObject *CreateObject() const { return m_objectConstructor ? (*m_objectConstructor)() : 0; } + bool IsDynamic() const { return (NULL != m_objectConstructor); } const wxChar *GetClassName() const { return m_className; } const wxChar *GetBaseClassName1() const