summaryrefslogtreecommitdiffstats
path: root/src/XMLNode.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-04-14 13:12:18 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2016-04-14 13:12:18 +0200
commit37951c09410545f3795887052681ee668368c8d0 (patch)
treed7653af5b1ecd88283ec68b28be2c15587a9e025 /src/XMLNode.cpp
parent43910c5678b0133611d5189ea558756fa5bec920 (diff)
parentab583834eec75d23e16b8f205ab65788d8df6ffe (diff)
downloadastra-37951c09410545f3795887052681ee668368c8d0.tar.gz
astra-37951c09410545f3795887052681ee668368c8d0.tar.bz2
astra-37951c09410545f3795887052681ee668368c8d0.tar.xz
astra-37951c09410545f3795887052681ee668368c8d0.zip
Merge pull request #37 from wjp/cppcheck
Fix cppcheck warnings
Diffstat (limited to 'src/XMLNode.cpp')
-rw-r--r--src/XMLNode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XMLNode.cpp b/src/XMLNode.cpp
index 40a9b22..cf268c2 100644
--- a/src/XMLNode.cpp
+++ b/src/XMLNode.cpp
@@ -158,7 +158,7 @@ vector<string> XMLNode::getContentArray() const
vector<string> res(iSize);
// loop all list item nodes
list<XMLNode> nodes = getNodes("ListItem");
- for (list<XMLNode>::iterator it = nodes.begin(); it != nodes.end(); it++) {
+ for (list<XMLNode>::iterator it = nodes.begin(); it != nodes.end(); ++it) {
int iIndex = it->getAttributeNumerical("index");
string sValue = it->getAttribute("value");
ASTRA_ASSERT(iIndex < iSize);
@@ -290,7 +290,7 @@ vector<float32> XMLNode::getOptionNumericalArray(string _sKey) const
if (!hasOption(_sKey)) return vector<float32>();
list<XMLNode> nodes = getNodes("Option");
- for (list<XMLNode>::iterator it = nodes.begin(); it != nodes.end(); it++) {
+ for (list<XMLNode>::iterator it = nodes.begin(); it != nodes.end(); ++it) {
if (it->getAttribute("key") == _sKey) {
vector<float32> vals = it->getContentNumericalArray();
return vals;