diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-05-04 01:35:23 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-05-04 01:35:23 +0000 |
| commit | 7537dc28fb5601bf723058bba3dee0ec641669f2 (patch) | |
| tree | f73bf4a08fb25c14ef7e486afca1858f732054ef /src | |
| parent | * po/pt_BR.po: Fix some "Unmatched closing </b>" warnings. (diff) | |
| download | inkscape-7537dc28fb5601bf723058bba3dee0ec641669f2.tar.gz inkscape-7537dc28fb5601bf723058bba3dee0ec641669f2.zip | |
Remove warnings
(bzr r719)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dom/minidom.cpp | 10 | ||||
| -rw-r--r-- | src/dom/minidom.h | 2 |
2 files changed, 6 insertions, 6 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
diff --git a/src/dom/minidom.h b/src/dom/minidom.h index 9451691ff..df8cca881 100644 --- a/src/dom/minidom.h +++ b/src/dom/minidom.h @@ -112,7 +112,7 @@ public: virtual ~Element()
{
- for (int i=0 ; i<children.size() ; i++)
+ for (unsigned int i=0 ; i<children.size() ; i++)
delete children[i];
}
|
