const-ify some references (satisfy cppcheck)

This commit is contained in:
Martin Vierula
2023-10-27 06:20:01 -07:00
parent b9836bcaa4
commit 36adc58ea3
11 changed files with 14 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ std::string RuleMessage::_details(const RuleMessage *rm) {
msg.append(" [maturity \"" + std::to_string(rm->m_maturity) + "\"]");
msg.append(" [accuracy \"" + std::to_string(rm->m_accuracy) + "\"]");
for (auto &a : rm->m_tags) {
for (const auto &a : rm->m_tags) {
msg.append(" [tag \"" + utils::string::toHexIfNeeded(a, true) + "\"]");
}