Mercurial > hg > orthanc
diff OrthancServer/OrthancFindRequestHandler.cpp @ 656:08eca5d86aad
fixes to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2013 11:19:31 +0100 |
parents | 5ab377df6d8b |
children | 41b3e5ccb291 |
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp Wed Oct 30 11:56:28 2013 +0100 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Mon Nov 04 11:19:31 2013 +0100 @@ -151,7 +151,7 @@ std::list<std::string> children; index.GetChildInstances(children, id); - if (children.size() == 0) + if (children.empty()) { return false; } @@ -243,7 +243,7 @@ // Loop over the studies for (std::list<std::string>::const_iterator - it = studies.begin(); it != studies.end(); it++) + it = studies.begin(); it != studies.end(); ++it) { try { @@ -415,7 +415,7 @@ DicomArray query(input); for (std::list<std::string>::const_iterator - resource = resources.begin(); resource != resources.end(); resource++) + resource = resources.begin(); resource != resources.end(); ++resource) { try {