mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
Remove some useless casts
Classes derived from Csock* can be casted implicitly to their base class, this explicit casts are rather pointless. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1548 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user