From 2043008257fa1c945efd59adb262ac65ac9cca6a Mon Sep 17 00:00:00 2001 From: ishmal Date: Wed, 12 Apr 2006 14:09:20 +0000 Subject: [PATCH] fix casting problems --- src/dom/xmlwriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dom/xmlwriter.cpp b/src/dom/xmlwriter.cpp index 08fd653e7..c7a6e32ec 100644 --- a/src/dom/xmlwriter.cpp +++ b/src/dom/xmlwriter.cpp @@ -88,8 +88,8 @@ void XmlWriter::write(const Node *nodeArg) indent+=2; - NamedNodeMap *attributes = node->getAttributes(); - int nrAttrs = attributes->getLength(); + NamedNodeMap attributes = node->getAttributes(); + int nrAttrs = attributes.getLength(); //### Start open tag spaces(); @@ -101,7 +101,7 @@ void XmlWriter::write(const Node *nodeArg) //### Attributes for (int i=0 ; iitem(i); + Node *attr = attributes.item(i); spaces(); pos(attr->getNodeName()); po("=\""); @@ -155,7 +155,7 @@ void XmlWriter::writeFile(FILE *f, const Node *node) write(node); - for (int i=0 ; i