diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-04-12 14:09:20 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-04-12 14:09:20 +0000 |
| commit | 324da7c58a7d745b820322ea7e5a74563651c5c1 (patch) | |
| tree | b6a981f5af96d04d8069a657b09ed32f532bf472 /src/dom/xmlwriter.cpp | |
| parent | change include paths (diff) | |
| download | inkscape-324da7c58a7d745b820322ea7e5a74563651c5c1.tar.gz inkscape-324da7c58a7d745b820322ea7e5a74563651c5c1.zip | |
fix casting problems
(bzr r486)
Diffstat (limited to 'src/dom/xmlwriter.cpp')
| -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); |
