X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4de6207afa9a78be63fe93df44ff5b90cecd2781..85ad5eb54d74e371bc4bce6ff92f2de70fd21ac9:/src/common/object.cpp?ds=inline diff --git a/src/common/object.cpp b/src/common/object.cpp index c5b9737d3d..dbc9d46ef4 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -87,6 +87,18 @@ bool wxObject::IsKindOf(wxClassInfo *info) const return FALSE; } +wxObject *wxObject::Clone() const +{ + wxObject *object = GetClassInfo()->CreateObject(); + CopyObject(*object); + return object; +} + +void wxObject::CopyObject(wxObject& object_dest) const +{ + wxASSERT(object_dest.GetClassInfo()->IsKindOf(GetClassInfo())); +} + #if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT void wxObject::Dump(ostream& str) {