From 0c06c9839c0ca2f5857ed336bcbfd98031f97f08 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 12 Apr 2006 13:06:05 +0000 Subject: [PATCH] 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 --- include/wx/object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.0