]> git.saurik.com Git - wxWidgets.git/commitdiff
Make IsOfClass out-of-line to defend against gcc 3.4.[56] bug:
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sat, 24 Jun 2006 11:18:28 +0000 (11:18 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sat, 24 Jun 2006 11:18:28 +0000 (11:18 +0000)
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

include/wx/xrc/xmlres.h
src/xrc/xmlres.cpp

index fe475b80b322bf86556ee17db59d5b52b16cccac..8699dd5d336e9abf2a317041ee154b942c41049e 100644 (file)
@@ -364,8 +364,7 @@ protected:
 
     // Returns true if the node has a property class equal to classname,
     // e.g. <object class="wxDialog">.
-    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, <tag>content<tag> is represented as
index 789761a6e1fba0d46785caaad5ea4e56564857fc..4d5f2d6b71c79ec4b06a6773d707204a7513e3e0 100644 (file)
@@ -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;