mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Use member initialization lists [-Weffc++] (#270)
This commit is contained in:
+6
-4
@@ -774,10 +774,12 @@ void CTable::Clear() {
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
CBlowfish::CBlowfish(const CString & sPassword, int iEncrypt, const CString & sIvec) {
|
||||
m_iEncrypt = iEncrypt;
|
||||
m_ivec = (unsigned char *)calloc(sizeof(unsigned char), 8);
|
||||
m_num = 0;
|
||||
CBlowfish::CBlowfish(const CString & sPassword, int iEncrypt, const CString & sIvec)
|
||||
: m_ivec((unsigned char *)calloc(sizeof(unsigned char), 8)),
|
||||
m_bkey(),
|
||||
m_iEncrypt(iEncrypt),
|
||||
m_num(0)
|
||||
{
|
||||
|
||||
if (sIvec.length() >= 8) {
|
||||
memcpy(m_ivec, sIvec.data(), 8);
|
||||
|
||||
Reference in New Issue
Block a user