From: Michael Wetherell Date: Sat, 24 Jun 2006 11:18:28 +0000 (+0000) Subject: Make IsOfClass out-of-line to defend against gcc 3.4.[56] bug: X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d672c46c0c68ae560a537eacd3614b4114d73d4?ds=sidebyside;hp=aceeebce6d61c9f239a08ab53e669ad040deee96 Make IsOfClass out-of-line to defend against gcc 3.4.[56] bug: http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:msp:75436:ofgfinakfempiciaejof git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/xrc/xmlres.h b/include/wx/xrc/xmlres.h index fe475b80b3..8699dd5d33 100644 --- a/include/wx/xrc/xmlres.h +++ b/include/wx/xrc/xmlres.h @@ -364,8 +364,7 @@ protected: // Returns true if the node has a property class equal to classname, // e.g. . - bool IsOfClass(wxXmlNode *node, const wxString& classname) - { return node->GetPropVal(wxT("class"), wxEmptyString) == classname; } + bool IsOfClass(wxXmlNode *node, const wxString& classname); // Gets node content from wxXML_ENTITY_NODE // The problem is, content is represented as diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 789761a6e1..4d5f2d6b71 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1147,6 +1147,14 @@ wxXmlNode *wxXmlResourceHandler::GetParamNode(const wxString& param) } + +bool wxXmlResourceHandler::IsOfClass(wxXmlNode *node, const wxString& classname) +{ + return node->GetPropVal(wxT("class"), wxEmptyString) == classname; +} + + + wxString wxXmlResourceHandler::GetNodeContent(wxXmlNode *node) { wxXmlNode *n = node;