mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Removes reference counter from log write agent
This commit is contained in:
parent
5ebfa5eacb
commit
4b88fdc513
@ -33,19 +33,7 @@ class DebugLogWriterAgent : public std::ofstream {
|
||||
}
|
||||
|
||||
void write(const std::string& msg);
|
||||
bool refCountDecreaseAndCheck() {
|
||||
this->m_referenceCount--;
|
||||
if (this->m_referenceCount == 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void refCountIncrease() {
|
||||
this->m_referenceCount++;
|
||||
}
|
||||
|
||||
int m_referenceCount;
|
||||
std::string m_fileName;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user