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)
{
#undef new
#endif
-void *wxObject::operator new (size_t size, char * fileName, int lineNum)
+void *wxObject::operator new (size_t size, wxChar * fileName, int lineNum)
{
return wxDebugAlloc(size, fileName, lineNum, TRUE);
}
// Cause problems for VC++ - crashes
#if !defined(__VISUALC__) && wxUSE_ARRAY_MEMORY_OPERATORS
-void * wxObject::operator new[] (size_t size, char * fileName, int lineNum)
+void * wxObject::operator new[] (size_t size, wxChar * fileName, int lineNum)
{
return wxDebugAlloc(size, fileName, lineNum, TRUE, TRUE);
}