]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
check for self-assignment in operator=
[wxWidgets.git] / include / wx / object.h
index b5f34262d63739fc241dd31fb733da926f880de0..26c3c0271cf518922fc18a832bf0635fc0fd6295 100644 (file)
@@ -190,7 +190,7 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxString& name);
             &basename::ms_classInfo,                                          \
             baseclsinfo2,                                                     \
             (int) sizeof(name),                                               \
-            (wxObjectConstructorFn) func);                                    \
+            func);                                                            \
                                                                               \
     wxClassInfo *name::GetClassInfo() const                                   \
         { return &name::ms_classInfo; }