Modified Files:
wxWindows/src/common/object.cpp
properly #ifdef'd the DEBUG_PRINTF calls
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8637
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxObject *wxCreateDynamicObject(const wxChar *name)
{
wxObject *wxCreateDynamicObject(const wxChar *name)
{
+#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
DEBUG_PRINTF(wxObject *wxCreateDynamicObject)
DEBUG_PRINTF(wxObject *wxCreateDynamicObject)
if (wxClassInfo::sm_classTable)
{
wxClassInfo *info = (wxClassInfo *)wxClassInfo::sm_classTable->Get(name);
if (wxClassInfo::sm_classTable)
{
wxClassInfo *info = (wxClassInfo *)wxClassInfo::sm_classTable->Get(name);
void wxObject::StoreObject( wxObjectOutputStream& stream )
{
void wxObject::StoreObject( wxObjectOutputStream& stream )
{
+#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
DEBUG_PRINTF(wxObject::StoreObject)
DEBUG_PRINTF(wxObject::StoreObject)
wxString obj_name = wxString(GetClassInfo()->GetClassName()) + "_Serialize";
wxLibrary *lib = wxTheLibraries.LoadLibrary("wxserial");
wxString obj_name = wxString(GetClassInfo()->GetClassName()) + "_Serialize";
wxLibrary *lib = wxTheLibraries.LoadLibrary("wxserial");
void wxObject::LoadObject( wxObjectInputStream& stream )
{
void wxObject::LoadObject( wxObjectInputStream& stream )
{
+#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
DEBUG_PRINTF(wxObject::LoadObject)
DEBUG_PRINTF(wxObject::LoadObject)
wxString obj_name = wxString(GetClassInfo()->GetClassName()) + "_Serialize";
wxLibrary *lib = wxTheLibraries.LoadLibrary("wxserial");
wxString obj_name = wxString(GetClassInfo()->GetClassName()) + "_Serialize";
wxLibrary *lib = wxTheLibraries.LoadLibrary("wxserial");
void wxObject::Ref(const wxObject& clone)
{
void wxObject::Ref(const wxObject& clone)
{
+#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
DEBUG_PRINTF(wxObject::Ref)
DEBUG_PRINTF(wxObject::Ref)
- // delete reference to old data
+#endif
+ // delete reference to old data
UnRef();
// reference new data
if (clone.m_refData) {
UnRef();
// reference new data
if (clone.m_refData) {