X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5d6954b87d910969226ffade9714db7429211f3..4a06b34847e04ddaf6c25f9c63f4f072ed427636:/src/xrc/xh_bmp.cpp diff --git a/src/xrc/xh_bmp.cpp b/src/xrc/xh_bmp.cpp index 1c6e18924d..c7a1ed9b5a 100644 --- a/src/xrc/xh_bmp.cpp +++ b/src/xrc/xh_bmp.cpp @@ -22,6 +22,7 @@ #include "wx/xrc/xh_bmp.h" #include "wx/bitmap.h" +IMPLEMENT_DYNAMIC_CLASS(wxBitmapXmlHandler, wxXmlResourceHandler) wxBitmapXmlHandler::wxBitmapXmlHandler() : wxXmlResourceHandler() @@ -33,13 +34,12 @@ wxObject *wxBitmapXmlHandler::DoCreateResource() return new wxBitmap(GetBitmap(wxT(""))); } - - bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxBitmap")); } +IMPLEMENT_DYNAMIC_CLASS(wxIconXmlHandler, wxXmlResourceHandler) wxIconXmlHandler::wxIconXmlHandler() : wxXmlResourceHandler() @@ -51,10 +51,7 @@ wxObject *wxIconXmlHandler::DoCreateResource() return new wxIcon(GetIcon(wxT(""))); } - - bool wxIconXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxIcon")); } -