comparison OrthancServer/Sources/OrthancWebDav.cpp @ 4253:2221051b42df

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Oct 2020 20:08:44 +0200
parents f047e2734655
children d31cba1e27ac
comparison
equal deleted inserted replaced
4252:f047e2734655 4253:2221051b42df
610 INode* GetChild(const std::string& path) // Don't delete the result pointer! 610 INode* GetChild(const std::string& path) // Don't delete the result pointer!
611 { 611 {
612 Children::const_iterator child = children_.find(path); 612 Children::const_iterator child = children_.find(path);
613 if (child == children_.end()) 613 if (child == children_.end())
614 { 614 {
615 INode* child = CreateSubfolder(path); 615 INode* node = CreateSubfolder(path);
616 616
617 if (child == NULL) 617 if (node == NULL)
618 { 618 {
619 return NULL; 619 return NULL;
620 } 620 }
621 else 621 else
622 { 622 {
623 children_[path] = child; 623 children_[path] = node;
624 return child; 624 return node;
625 } 625 }
626 } 626 }
627 else 627 else
628 { 628 {
629 assert(child->second != NULL); 629 assert(child->second != NULL);
962 { 962 {
963 private: 963 private:
964 std::list<std::string>& resources_; 964 std::list<std::string>& resources_;
965 965
966 public: 966 public:
967 Visitor(std::list<std::string>& resources) : 967 explicit Visitor(std::list<std::string>& resources) :
968 resources_(resources) 968 resources_(resources)
969 { 969 {
970 } 970 }
971 971
972 virtual bool IsDicomAsJsonNeeded() const ORTHANC_OVERRIDE 972 virtual bool IsDicomAsJsonNeeded() const ORTHANC_OVERRIDE