diff --git a/include/wx/dcsvg.h b/include/wx/dcsvg.h index 939b0dd36e..a0b794a122 100644 --- a/include/wx/dcsvg.h +++ b/include/wx/dcsvg.h @@ -324,12 +324,7 @@ public: void SetShapeRenderingMode(wxSVGShapeRenderingMode renderingMode); private: - wxSVGFileDC() - : wxDC(new wxSVGFileDCImpl(this, wxString())) - { - } - - wxDECLARE_DYNAMIC_CLASS(wxSVGFileDC); + wxDECLARE_ABSTRACT_CLASS(wxSVGFileDC); }; #endif // wxUSE_SVG diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index c70b16ae1c..29aae36ce9 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -465,7 +465,7 @@ wxSVGBitmapFileHandler::ProcessBitmap(const wxBitmap& bmp, // wxSVGFileDC (specialisations) // ---------------------------------------------------------- -wxIMPLEMENT_DYNAMIC_CLASS(wxSVGFileDC, wxDC); +wxIMPLEMENT_ABSTRACT_CLASS(wxSVGFileDC, wxDC); void wxSVGFileDC::SetBitmapHandler(wxSVGBitmapHandler* handler) {