Removed unnecessary cppcheck suppression and r-value reference as copy should be avoidded by RVO

This commit is contained in:
Eduardo Arias
2024-04-27 18:00:28 -03:00
parent b872f11f68
commit fde9d279b0
2 changed files with 1 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ void ModSecurity::serverLog(void *data, std::shared_ptr<RuleMessage> rm) {
}
if (m_logProperties & TextLogProperty) {
std::string &&d = rm->log();
auto d = rm->log();
const void *a = static_cast<const void *>(d.c_str());
m_logCb(data, a);
return;