diff --git a/Modules.cpp b/Modules.cpp index 723aedd5..5afcf0d2 100644 --- a/Modules.cpp +++ b/Modules.cpp @@ -160,7 +160,7 @@ bool CSocket::Connect(const CString& sHostname, unsigned short uPort, bool bSSL, sSockName = GetSockName(); } - return m_pModule->GetManager()->Connect(sHostname, uPort, sSockName, uTimeout, bSSL, sVHost, (Csock*) this); + return m_pModule->GetManager()->Connect(sHostname, uPort, sSockName, uTimeout, bSSL, sVHost, this); } bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) { @@ -175,7 +175,7 @@ bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) { sSockName = GetSockName(); } - return m_pModule->GetManager()->ListenAll(uPort, sSockName, bSSL, SOMAXCONN, (Csock*) this); + return m_pModule->GetManager()->ListenAll(uPort, sSockName, bSSL, SOMAXCONN, this); } bool CSocket::PutIRC(const CString& sLine) { diff --git a/modules/shell.cpp b/modules/shell.cpp index 374cbf92..a5cd7d84 100644 --- a/modules/shell.cpp +++ b/modules/shell.cpp @@ -155,7 +155,7 @@ public: } void RunCommand(const CString& sCommand) { - m_pManager->AddSock((Csock*) new CShellSock(this, m_pClient, "cd " + m_sPath + " && " + sCommand), "SHELL"); + m_pManager->AddSock(new CShellSock(this, m_pClient, "cd " + m_sPath + " && " + sCommand), "SHELL"); } private: CString m_sPath;