diff OrthancFramework/Sources/HttpServer/StringMatcher.cpp @ 4201:2d5209153b32

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 08:18:28 +0200
parents bf7b9edf6b81
children b30a8de92ad9
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Wed Sep 16 20:53:31 2020 +0200
+++ b/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Thu Sep 17 08:18:28 2020 +0200
@@ -42,7 +42,7 @@
   public:
     // WARNING - The lifetime of "pattern_" must be larger than
     // "search_", as the latter internally keeps a pointer to "pattern" (*)
-    Search(const std::string& pattern) :
+    explicit Search(const std::string& pattern) :
       algorithm_(pattern.begin(), pattern.end())
     {
     }