]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmndata.cpp
Fix button order in wxStdDialogButtonSizer in all cases under GTK.
[wxWidgets.git] / src / common / cmndata.cpp
index d8cc2b03a8bd8de47dfd41da50493da37b1562f2..26a9a6785a3d64326bf88a09d041a4a915acd85b 100644 (file)
@@ -223,11 +223,7 @@ wxPrintData::wxPrintData(const wxPrintData& printData)
 
 void wxPrintData::SetPrivData( char *privData, int len )
 {
-    if (m_privData)
-    {
-        delete [] m_privData;
-        m_privData = NULL;
-    }
+    wxDELETEA(m_privData);
     m_privDataLen = len;
     if (m_privDataLen > 0)
     {
@@ -287,11 +283,7 @@ wxPrintData& wxPrintData::operator=(const wxPrintData& data)
     m_nativeData = data.GetNativeData();
     m_nativeData->m_ref++;
 
-    if (m_privData)
-    {
-        delete [] m_privData;
-        m_privData = NULL;
-    }
+    wxDELETEA(m_privData);
     m_privDataLen = data.GetPrivDataLen();
     if (m_privDataLen > 0)
     {