summaryrefslogtreecommitdiffstats
path: root/src/dom/minidom.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-05-04 01:35:23 +0000
committerishmal <ishmal@users.sourceforge.net>2006-05-04 01:35:23 +0000
commit7537dc28fb5601bf723058bba3dee0ec641669f2 (patch)
treef73bf4a08fb25c14ef7e486afca1858f732054ef /src/dom/minidom.cpp
parent* po/pt_BR.po: Fix some "Unmatched closing </b>" warnings. (diff)
downloadinkscape-7537dc28fb5601bf723058bba3dee0ec641669f2.tar.gz
inkscape-7537dc28fb5601bf723058bba3dee0ec641669f2.zip
Remove warnings
(bzr r719)
Diffstat (limited to 'src/dom/minidom.cpp')
-rw-r--r--src/dom/minidom.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dom/minidom.cpp b/src/dom/minidom.cpp
index 6038b7dc5..0a5001eaa 100644
--- a/src/dom/minidom.cpp
+++ b/src/dom/minidom.cpp
@@ -24,7 +24,7 @@ void Element::findElementsRecursive(std::vector<Element *>&res, const DOMString
{
if (getName() == name)
res.push_back(this);
- for (int i=0; i<children.size() ; i++)
+ for (unsigned int i=0; i<children.size() ; i++)
children[i]->findElementsRecursive(res, name);
}
@@ -37,7 +37,7 @@ std::vector<Element *> Element::findElements(const DOMString &name)
DOMString Element::getAttribute(const DOMString &name)
{
- for (int i=0 ; i<attributes.size() ; i++)
+ for (unsigned int i=0 ; i<attributes.size() ; i++)
if (attributes[i].getName() ==name)
return attributes[i].getValue();
return "";
@@ -70,13 +70,13 @@ void Element::writeIndentedRecursive(FILE *f, int indent)
for (i=0;i<indent;i++)
fputc(' ',f);
fprintf(f,"<%s",name.c_str());
- for (int i=0 ; i<attributes.size() ; i++)
+ for (unsigned int i=0 ; i<attributes.size() ; i++)
{
fprintf(f," %s=\"%s\"",
attributes[i].getName().c_str(),
attributes[i].getValue().c_str());
}
- for (int i=0 ; i<namespaces.size() ; i++)
+ for (unsigned int i=0 ; i<namespaces.size() ; i++)
{
fprintf(f," xmlns:%s=\"%s\"",
namespaces[i].getPrefix().c_str(),
@@ -92,7 +92,7 @@ void Element::writeIndentedRecursive(FILE *f, int indent)
fprintf(f," %s\n", value.c_str());
}
- for (int i=0 ; i<children.size() ; i++)
+ for (unsigned int i=0 ; i<children.size() ; i++)
children[i]->writeIndentedRecursive(f, indent+2);
//Closing tag