diff --git a/src/lib/util.hpp b/src/lib/util.hpp index bdee6ea5d..ccbb23b80 100644 --- a/src/lib/util.hpp +++ b/src/lib/util.hpp @@ -115,7 +115,7 @@ namespace util { /** shortcut for string value containment test */ template inline bool - contains (std::string& str, const T& val) + contains (std::string const& str, const T& val) { return str.find (val) != std::string::npos; } @@ -124,7 +124,7 @@ namespace util { * in any sequential container */ template inline bool - contains (SEQ& cont, typename SEQ::const_reference val) + contains (SEQ const& cont, typename SEQ::const_reference val) { typename SEQ::const_iterator begin = cont.begin(); typename SEQ::const_iterator end = cont.end();