Fix copy ctor/assignment oper warnings of -Weffc++ (#270)

This commit is contained in:
J-P Nurmi
2015-03-04 18:13:32 +01:00
parent e1ada6c643
commit 5aa8b0dcef
7 changed files with 26 additions and 0 deletions

View File

@@ -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++;