Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancWebDav.cpp Thu Oct 15 17:13:35 2020 +0200 +++ b/OrthancServer/Sources/OrthancWebDav.cpp Thu Oct 15 20:08:44 2020 +0200 @@ -612,16 +612,16 @@ Children::const_iterator child = children_.find(path); if (child == children_.end()) { - INode* child = CreateSubfolder(path); + INode* node = CreateSubfolder(path); - if (child == NULL) + if (node == NULL) { return NULL; } else { - children_[path] = child; - return child; + children_[path] = node; + return node; } } else @@ -964,7 +964,7 @@ std::list<std::string>& resources_; public: - Visitor(std::list<std::string>& resources) : + explicit Visitor(std::list<std::string>& resources) : resources_(resources) { }