diff 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
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp	Thu Sep 17 15:01:31 2020 +0200
+++ b/OrthancFramework/UnitTestsSources/MemoryCacheTests.cpp	Thu Sep 17 16:18:01 2020 +0200
@@ -252,7 +252,7 @@
     std::string value_;
 
   public:
-    S(const std::string& value) : value_(value)
+    explicit S(const std::string& value) : value_(value)
     {
     }
 
@@ -300,7 +300,7 @@
 
   size_t count = 0;
   for (std::list<std::string>::const_iterator
-         it = i.begin(); it != i.end(); it++)
+         it = i.begin(); it != i.end(); ++it)
   {
     if (*it == first ||
         *it == second)