X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa96f01c02ca602769785fa4bad0dd69ae6cad05..172541f64be8fcddb08f1c121da256d08c24a70b:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 9c34396f4f..b0bc37a2fb 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -50,17 +50,7 @@ #endif // wxUSE_PRINTING_ARCHITECTURE #if defined(__WXMSW__) - #include - #include "wx/msw/private.h" - - #ifndef __SMARTPHONE__ /* of WinCE */ - #include - #endif - - #if defined(__WATCOMC__) || defined(__SYMANTEC__) || defined(__SALFORDC__) - #include - #include - #endif + #include "wx/msw/wrapcdlg.h" #endif // MSW #if wxUSE_PRINTING_ARCHITECTURE @@ -187,7 +177,7 @@ wxPrintData::wxPrintData() m_privData = NULL; m_privDataLen = 0; - + m_nativeData = wxPrintFactory::GetFactory()->CreatePrintNativeData(); } @@ -195,6 +185,7 @@ wxPrintData::wxPrintData(const wxPrintData& printData) : wxObject() { m_nativeData = NULL; + m_privData = NULL; (*this) = printData; } @@ -218,7 +209,7 @@ wxPrintData::~wxPrintData() m_nativeData->m_ref--; if (m_nativeData->m_ref == 0) delete m_nativeData; - + if (m_privData) delete [] m_privData;