diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dom/xmlwriter.cpp | 8 |
1 files 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 ; i<nrAttrs ; i++) { - Node *attr = attributes->item(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<buf.size() ; i++) + for (unsigned int i=0 ; i<buf.size() ; i++) { int ch = buf[i]; fputc(ch, f); |
