cppcheck: make static analysis more pedantic

This commit is contained in:
Felipe Zimmerle
2020-01-17 11:41:05 -03:00
parent cd9b8aa93b
commit 4f13fecbaf
23 changed files with 58 additions and 42 deletions

View File

@@ -36,13 +36,13 @@ void CustomDebugLog::write(int level, const std::string &id,
m_log << msgf << std::endl;
}
bool CustomDebugLog::contains(const std::string& pattern) {
bool const CustomDebugLog::contains(const std::string& pattern) const {
modsecurity::Utils::Regex re(pattern);
std::string s = m_log.str();
return modsecurity::Utils::regex_search(s, re);
}
std::string CustomDebugLog::log_messages() {
std::string const CustomDebugLog::log_messages() const {
return m_log.str();
}