]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxDECLARE_CLASS synonym of wxDECLARE_ABSTRACT_CLASS.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2011 13:06:17 +0000 (13:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2011 13:06:17 +0000 (13:06 +0000)
Previously wxDECLARE_CLASS was a synonym for wxDECLARE_DYNAMIC_CLASS which was
inconsistent with its documentation and wxIMPLEMENT_CLASS that was the same as
wxIMPLEMENT_ABSTRACT_CLASS.

Resolve this in the most backwards compatible and also arguably logical way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/rtti.h
interface/wx/object.h

index 565667879cb823e2320941d5a0657b410711c074..fcd463e869af586b87f33d7fe5390f2da37cd21c 100644 (file)
@@ -144,7 +144,7 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxString& name);
     static wxObject* wxCreateObject()
 
 #define wxDECLARE_CLASS(name)                                                 \
-    wxDECLARE_DYNAMIC_CLASS(name)
+    wxDECLARE_ABSTRACT_CLASS(name)
 
 
 // common part of the macros below
index 90435866f21a3a09282110ebcc725b56e2f200bb..dbe8a5bfbadb4a39f07ac8d8513cc587cec2dff4 100644 (file)
@@ -708,7 +708,9 @@ public:
 /**
     Used inside a class declaration to declare that the class should be made
     known to the class hierarchy, but objects of this class cannot be created
-    dynamically. The same as wxDECLARE_DYNAMIC_CLASS().
+    dynamically.
+
+    The same as wxDECLARE_ABSTRACT_CLASS().
 
     @header{wx/object.h}
 */