mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix copy ctor/assignment oper warnings of -Weffc++ (#270)
This commit is contained in:
@@ -41,6 +41,8 @@ class CIRCFloodTimer : public CCron {
|
||||
CIRCFloodTimer(CIRCSock* pSock) : m_pSock(pSock) {
|
||||
StartMaxCycles(m_pSock->m_fFloodRate, 0);
|
||||
}
|
||||
CIRCFloodTimer(const CIRCFloodTimer&) = delete;
|
||||
CIRCFloodTimer& operator=(const CIRCFloodTimer&) = delete;
|
||||
void RunJob() override {
|
||||
if (m_pSock->m_iSendsAllowed < m_pSock->m_uFloodBurst) {
|
||||
m_pSock->m_iSendsAllowed++;
|
||||
|
||||
Reference in New Issue
Block a user