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
This commit is contained in:
@@ -364,8 +364,7 @@ protected:
|
|||||||
|
|
||||||
// Returns true if the node has a property class equal to classname,
|
// Returns true if the node has a property class equal to classname,
|
||||||
// e.g. <object class="wxDialog">.
|
// e.g. <object class="wxDialog">.
|
||||||
bool IsOfClass(wxXmlNode *node, const wxString& classname)
|
bool IsOfClass(wxXmlNode *node, const wxString& classname);
|
||||||
{ return node->GetPropVal(wxT("class"), wxEmptyString) == classname; }
|
|
||||||
|
|
||||||
// Gets node content from wxXML_ENTITY_NODE
|
// Gets node content from wxXML_ENTITY_NODE
|
||||||
// The problem is, <tag>content<tag> is represented as
|
// The problem is, <tag>content<tag> is represented as
|
||||||
|
@@ -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)
|
wxString wxXmlResourceHandler::GetNodeContent(wxXmlNode *node)
|
||||||
{
|
{
|
||||||
wxXmlNode *n = node;
|
wxXmlNode *n = node;
|
||||||
|
Reference in New Issue
Block a user