comparison OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp @ 4204:318c16cfccab

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 16:18:01 +0200
parents bf7b9edf6b81
children d9473bd5ed43
comparison
equal deleted inserted replaced
4203:4d42408da117 4204:318c16cfccab
250 { 250 {
251 private: 251 private:
252 std::string value_; 252 std::string value_;
253 253
254 public: 254 public:
255 S(const std::string& value) : value_(value) 255 explicit S(const std::string& value) : value_(value)
256 { 256 {
257 } 257 }
258 258
259 const std::string& GetValue() const 259 const std::string& GetValue() const
260 { 260 {
298 std::list<std::string> i; 298 std::list<std::string> i;
299 a.List(i); 299 a.List(i);
300 300
301 size_t count = 0; 301 size_t count = 0;
302 for (std::list<std::string>::const_iterator 302 for (std::list<std::string>::const_iterator
303 it = i.begin(); it != i.end(); it++) 303 it = i.begin(); it != i.end(); ++it)
304 { 304 {
305 if (*it == first || 305 if (*it == first ||
306 *it == second) 306 *it == second)
307 { 307 {
308 count++; 308 count++;