summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 098921a)
raw | patch | inline | side by side (parent: 098921a)
author | ishmal <ishmal@users.sourceforge.net> | |
Wed, 12 Apr 2006 14:09:20 +0000 (14:09 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Wed, 12 Apr 2006 14:09:20 +0000 (14:09 +0000) |
src/dom/xmlwriter.cpp | patch | blob | history |
diff --git a/src/dom/xmlwriter.cpp b/src/dom/xmlwriter.cpp
index 08fd653e7626aa1404bb736f8a9ad762e3f398f2..c7a6e32ece4eed564349917ee43e531381203d9c 100644 (file)
--- a/src/dom/xmlwriter.cpp
+++ b/src/dom/xmlwriter.cpp
indent+=2;
- NamedNodeMap *attributes = node->getAttributes();
- int nrAttrs = attributes->getLength();
+ NamedNodeMap attributes = node->getAttributes();
+ int nrAttrs = attributes.getLength();
//### Start open tag
spaces();
//### Attributes
for (int i=0 ; i<nrAttrs ; i++)
{
- Node *attr = attributes->item(i);
+ Node *attr = attributes.item(i);
spaces();
pos(attr->getNodeName());
po("=\"");
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);