Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
655:93adc693cc60 | 656:08eca5d86aad |
---|---|
149 | 149 |
150 { | 150 { |
151 std::list<std::string> children; | 151 std::list<std::string> children; |
152 index.GetChildInstances(children, id); | 152 index.GetChildInstances(children, id); |
153 | 153 |
154 if (children.size() == 0) | 154 if (children.empty()) |
155 { | 155 { |
156 return false; | 156 return false; |
157 } | 157 } |
158 | 158 |
159 childId = children.front(); | 159 childId = children.front(); |
241 modalities.insert(tmp[i]); | 241 modalities.insert(tmp[i]); |
242 } | 242 } |
243 | 243 |
244 // Loop over the studies | 244 // Loop over the studies |
245 for (std::list<std::string>::const_iterator | 245 for (std::list<std::string>::const_iterator |
246 it = studies.begin(); it != studies.end(); it++) | 246 it = studies.begin(); it != studies.end(); ++it) |
247 { | 247 { |
248 try | 248 try |
249 { | 249 { |
250 // We are considering a single study. Check whether one of | 250 // We are considering a single study. Check whether one of |
251 // its child series matches one of the modalities. | 251 // its child series matches one of the modalities. |
413 * Loop over all the resources for this query level. | 413 * Loop over all the resources for this query level. |
414 **/ | 414 **/ |
415 | 415 |
416 DicomArray query(input); | 416 DicomArray query(input); |
417 for (std::list<std::string>::const_iterator | 417 for (std::list<std::string>::const_iterator |
418 resource = resources.begin(); resource != resources.end(); resource++) | 418 resource = resources.begin(); resource != resources.end(); ++resource) |
419 { | 419 { |
420 try | 420 try |
421 { | 421 { |
422 std::string instance; | 422 std::string instance; |
423 if (LookupOneInstance(instance, context_.GetIndex(), *resource, level)) | 423 if (LookupOneInstance(instance, context_.GetIndex(), *resource, level)) |