X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2dedef259c81ed4288feaacf3cf08413e50ba68f..ac9d38d811747d38bcd1747fb95878b03cdf24f0:/src/common/dcgraph.cpp diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 2fde9ec8a1..d6e6112d96 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -52,19 +52,23 @@ static inline double DegToRad(double deg) IMPLEMENT_DYNAMIC_CLASS(wxGCDC, wxDC) -wxGCDC::wxGCDC(const wxWindowDC& dc) +wxGCDC::wxGCDC(const wxWindowDC& dc) : + wxDC( new wxGCDCImpl( this, dc ) ) { - m_pimpl = new wxGCDCImpl( this, dc ); } -wxGCDC::wxGCDC( const wxMemoryDC& dc) +wxGCDC::wxGCDC( const wxMemoryDC& dc) : + wxDC( new wxGCDCImpl( this, dc ) ) { - m_pimpl = new wxGCDCImpl( this, dc ); } -wxGCDC::wxGCDC() +wxGCDC::wxGCDC() : + wxDC( new wxGCDCImpl( this ) ) +{ +} + +wxGCDC::~wxGCDC() { - m_pimpl = new wxGCDCImpl( this ); } wxGraphicsContext* wxGCDC::GetGraphicsContext()