X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5d6954b87d910969226ffade9714db7429211f3..284fa852b4b6b1a49b954613326c226f109c28cd:/contrib/src/xrc/xh_bmp.cpp diff --git a/contrib/src/xrc/xh_bmp.cpp b/contrib/src/xrc/xh_bmp.cpp index 1c6e18924d..c7a1ed9b5a 100644 --- a/contrib/src/xrc/xh_bmp.cpp +++ b/contrib/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")); } -