From: ishmal Date: Wed, 12 Apr 2006 14:09:20 +0000 (+0000) Subject: fix casting problems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2043008257fa1c945efd59adb262ac65ac9cca6a;p=inkscape.git fix casting problems --- 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