summaryrefslogtreecommitdiff
path: root/src/domhelpers.cpp
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-02-13 17:59:50 +0000
committerStef Walter <stef@memberwebs.com>2006-02-13 17:59:50 +0000
commit495e29b4d34d2f70ae39029a967d3f1322067de7 (patch)
tree98394a2075f5ac07b02d31357ea0e349db0df08c /src/domhelpers.cpp
parentbf005765a78aa57434119630dfd2351345681478 (diff)
Fix build problems with GCC 4.0
Diffstat (limited to 'src/domhelpers.cpp')
-rw-r--r--src/domhelpers.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/domhelpers.cpp b/src/domhelpers.cpp
index 0efb102..cbe3f55 100644
--- a/src/domhelpers.cpp
+++ b/src/domhelpers.cpp
@@ -52,6 +52,7 @@ bool DOMHelpers::isEqualElement(const DOM::Element& el1, const DOM::Element& el2
{
if(el1.getNodeName() != el2.getNodeName())
return false;
+
// Compare attributes
DOM::NamedNodeMap at1 = el1.getAttributes();
DOM::NamedNodeMap at2 = el2.getAttributes();
@@ -65,11 +66,13 @@ bool DOMHelpers::isEqualElement(const DOM::Element& el1, const DOM::Element& el2
for(int i = 0; i < at1->getLength(); i++)
{
- DOM::Attr attr1 = (const DOM::Attr&)at1->item(i);
+ DOM::Node node = at1->item(0);
+ DOM::Attr attr1 = (DOM::Attr&)node;
if(attr1 == NULL)
return false;
- DOM::Attr attr2 = (const DOM::Attr&)at2->getNamedItem(attr1.getNodeName());
+ node = at2->getNamedItem(attr1.getNodeName());
+ DOM::Attr attr2 = (DOM::Attr&)node;
if(attr2 == NULL)
return false;