X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bca03736369e836cce9297509505c5972e775dd..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_bmp.cpp?ds=sidebyside diff --git a/src/xrc/xh_bmp.cpp b/src/xrc/xh_bmp.cpp index a91318801b..788f50f227 100644 --- a/src/xrc/xh_bmp.cpp +++ b/src/xrc/xh_bmp.cpp @@ -3,7 +3,6 @@ // Purpose: XRC resource for wxBitmap and wxIcon // Author: Vaclav Slavik // Created: 2000/09/09 -// RCS-ID: $Id$ // Copyright: (c) 2000 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -32,9 +31,7 @@ wxBitmapXmlHandler::wxBitmapXmlHandler() wxObject *wxBitmapXmlHandler::DoCreateResource() { - // NB: empty parameter name means "take directly from this node's next - // instead of from subnode with given name" - return new wxBitmap(GetBitmap(wxEmptyString)); + return new wxBitmap(GetBitmap(m_node)); } bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node) @@ -51,9 +48,7 @@ wxIconXmlHandler::wxIconXmlHandler() wxObject *wxIconXmlHandler::DoCreateResource() { - // NB: empty parameter name means "take directly from this node's next - // instead of from subnode with given name" - return new wxIcon(GetIcon(wxEmptyString)); + return new wxIcon(GetIcon(m_node)); } bool wxIconXmlHandler::CanHandle(wxXmlNode *node)