Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4200:7112a8af0b63 | 4201:2d5209153b32 |
---|---|
40 Algorithm algorithm_; | 40 Algorithm algorithm_; |
41 | 41 |
42 public: | 42 public: |
43 // WARNING - The lifetime of "pattern_" must be larger than | 43 // WARNING - The lifetime of "pattern_" must be larger than |
44 // "search_", as the latter internally keeps a pointer to "pattern" (*) | 44 // "search_", as the latter internally keeps a pointer to "pattern" (*) |
45 Search(const std::string& pattern) : | 45 explicit Search(const std::string& pattern) : |
46 algorithm_(pattern.begin(), pattern.end()) | 46 algorithm_(pattern.begin(), pattern.end()) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 Iterator Apply(Iterator start, | 50 Iterator Apply(Iterator start, |