comparison OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 4956:964bbf5cb365

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Mar 2022 11:48:47 +0100
parents 47d734fa30f6
children d6ed4c73c719
comparison
equal deleted inserted replaced
4955:1610e56cadfb 4956:964bbf5cb365
93 { 93 {
94 private: 94 private:
95 std::vector<const char*> items_; 95 std::vector<const char*> items_;
96 96
97 public: 97 public:
98 PathHelper(const std::vector<std::string>& path) 98 explicit PathHelper(const std::vector<std::string>& path)
99 { 99 {
100 items_.resize(path.size()); 100 items_.resize(path.size());
101 for (size_t i = 0; i < path.size(); i++) 101 for (size_t i = 0; i < path.size(); i++)
102 { 102 {
103 items_[i] = path[i].c_str(); 103 items_[i] = path[i].c_str();