diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 2fde9ec8a1..923bbe2793 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -52,19 +52,19 @@ 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 ) ) { - m_pimpl = new wxGCDCImpl( this ); } wxGraphicsContext* wxGCDC::GetGraphicsContext()