Make wxSVGFileDC an abstract class

This commit is contained in:
Maarten Bent
2019-11-29 01:10:43 +01:00
parent c6ce2a77bf
commit 51254a148e
2 changed files with 2 additions and 7 deletions

View File

@@ -324,12 +324,7 @@ public:
void SetShapeRenderingMode(wxSVGShapeRenderingMode renderingMode); void SetShapeRenderingMode(wxSVGShapeRenderingMode renderingMode);
private: private:
wxSVGFileDC() wxDECLARE_ABSTRACT_CLASS(wxSVGFileDC);
: wxDC(new wxSVGFileDCImpl(this, wxString()))
{
}
wxDECLARE_DYNAMIC_CLASS(wxSVGFileDC);
}; };
#endif // wxUSE_SVG #endif // wxUSE_SVG

View File

@@ -465,7 +465,7 @@ wxSVGBitmapFileHandler::ProcessBitmap(const wxBitmap& bmp,
// wxSVGFileDC (specialisations) // wxSVGFileDC (specialisations)
// ---------------------------------------------------------- // ----------------------------------------------------------
wxIMPLEMENT_DYNAMIC_CLASS(wxSVGFileDC, wxDC); wxIMPLEMENT_ABSTRACT_CLASS(wxSVGFileDC, wxDC);
void wxSVGFileDC::SetBitmapHandler(wxSVGBitmapHandler* handler) void wxSVGFileDC::SetBitmapHandler(wxSVGBitmapHandler* handler)
{ {