Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4716:758fe3ffb336
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Jun 2021 16:22:58 +0200 |
parents | 8ffe2fdb541f |
children | 783f8a048035 2b4da0ee6b73 |
comparison
equal
deleted
inserted
replaced
4715:fb98db281d1d | 4716:758fe3ffb336 |
---|---|
2545 bool isComplete_; | 2545 bool isComplete_; |
2546 std::list<std::string> resources_; | 2546 std::list<std::string> resources_; |
2547 DicomToJsonFormat format_; | 2547 DicomToJsonFormat format_; |
2548 | 2548 |
2549 public: | 2549 public: |
2550 FindVisitor(DicomToJsonFormat format) : | 2550 explicit FindVisitor(DicomToJsonFormat format) : |
2551 isComplete_(false), | 2551 isComplete_(false), |
2552 format_(format) | 2552 format_(format) |
2553 { | 2553 { |
2554 } | 2554 } |
2555 | 2555 |
3215 | 3215 |
3216 type = GetChildResourceType(type); | 3216 type = GetChildResourceType(type); |
3217 if (type == level) | 3217 if (type == level) |
3218 { | 3218 { |
3219 for (std::set<std::string>::const_iterator | 3219 for (std::set<std::string>::const_iterator |
3220 it = children.begin(); it != children.end(); ++it) | 3220 it2 = children.begin(); it2 != children.end(); ++it2) |
3221 { | 3221 { |
3222 interest.insert(*it); | 3222 interest.insert(*it2); |
3223 } | 3223 } |
3224 | 3224 |
3225 break; // done | 3225 break; // done |
3226 } | 3226 } |
3227 else | 3227 else |