mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Removed unnecessary cppcheck suppression and r-value reference as copy should be avoidded by RVO
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user