diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-03-24 17:34:34 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-03-24 17:35:08 +0100 |
commit | 5c6a9523523c1680e898b4cf897531cd75435f22 (patch) | |
tree | 13d7a48d3c3b7c191c70d65d2e9fdc29e233ff0b /src/XMLNode.cpp | |
parent | 43910c5678b0133611d5189ea558756fa5bec920 (diff) | |
download | astra-5c6a9523523c1680e898b4cf897531cd75435f22.tar.gz astra-5c6a9523523c1680e898b4cf897531cd75435f22.tar.bz2 astra-5c6a9523523c1680e898b4cf897531cd75435f22.tar.xz astra-5c6a9523523c1680e898b4cf897531cd75435f22.zip |
Fix cppcheck warnings
Diffstat (limited to 'src/XMLNode.cpp')
-rw-r--r-- | src/XMLNode.cpp | 4 |
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; |