* Created a new wxObject method: wxObject::CopyObject(wxObject&)
and wxObject::Clone() uses it.
* Added some CopyObject to events.
* Reenable the idle loop in wxEvtHandler::ProcessThreadEvent(...)
* Some correctness in wxSocket.
Major bugs remaining:
- it seems there is a mutex problem when it works too quickly
- all threads aren't destroyed ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,14 @@ bool wxObject::IsKindOf(wxClassInfo *info) const
|
||||
|
||||
wxObject *wxObject::Clone() const
|
||||
{
|
||||
return GetClassInfo()->CreateObject();
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user