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
+3
View File
@@ -31,6 +31,9 @@ public:
CQuery(const CString& sName, CIRCNetwork* pNetwork);
~CQuery();
CQuery(const CQuery&) = delete;
CQuery& operator=(const CQuery&) = delete;
// Buffer
const CBuffer& GetBuffer() const { return m_Buffer; }
unsigned int GetBufferCount() const { return m_Buffer.GetLineCount(); }
+6
View File
@@ -140,6 +140,9 @@ private:
struct TDNSTask {
TDNSTask() : sHostname(""), iPort(0), sSockName(""), iTimeout(0), bSSL(false), sBindhost(""), pcSock(nullptr), bDoneTarget(false), bDoneBind(false), aiTarget(nullptr), aiBind(nullptr) {}
TDNSTask(const TDNSTask&) = delete;
TDNSTask& operator=(const TDNSTask&) = delete;
CString sHostname;
u_short iPort;
CString sSockName;
@@ -157,6 +160,9 @@ private:
public:
CDNSJob() : sHostname(""), task(nullptr), pManager(nullptr), bBind(false), iRes(0), aiResult(nullptr) {}
CDNSJob(const CDNSJob&) = delete;
CDNSJob& operator=(const CDNSJob&) = delete;
CString sHostname;
TDNSTask* task;
CSockManager* pManager;
+3
View File
@@ -222,6 +222,9 @@ public:
CBlowfish(const CString & sPassword, int iEncrypt, const CString & sIvec = "");
~CBlowfish();
CBlowfish(const CBlowfish&) = default;
CBlowfish& operator=(const CBlowfish&) = default;
//! output must be freed
static unsigned char *MD5(const unsigned char *input, u_int ilen);