mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Fix some ICC warnings found by Kuja
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@846 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -738,7 +738,7 @@ bool CIRCSock::OnPrivCTCP(CNick& Nick, CString& sMessage) {
|
||||
}
|
||||
} else if (sType.CaseCmp("RESUME") == 0) {
|
||||
// Need to lookup the connection by port, filter the port, and forward to the user
|
||||
CDCCBounce* pSock = (CDCCBounce*) CZNC::Get().GetManager().FindSockByLocalPort(atoi(sMessage.Token(3).c_str()));
|
||||
CDCCBounce* pSock = (CDCCBounce*) CZNC::Get().GetManager().FindSockByLocalPort(sMessage.Token(3).ToUShort());
|
||||
|
||||
if ((pSock) && (strncasecmp(pSock->GetSockName().c_str(), "DCC::", 5) == 0)) {
|
||||
m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001");
|
||||
|
||||
@@ -438,7 +438,7 @@ class CSafePtr : private CNoCopy {
|
||||
public:
|
||||
CSafePtr() { m_pType = new T; }
|
||||
CSafePtr(T* p) { m_pType = p; }
|
||||
~CSafePtr() { delete m_pType; }
|
||||
virtual ~CSafePtr() { delete m_pType; }
|
||||
|
||||
T& operator *() const { assert(m_pType); return *m_pType; }
|
||||
T* operator ->() const { assert(m_pType); return m_pType; }
|
||||
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
}
|
||||
|
||||
if (!sPort.empty()) {
|
||||
m_uPort = sPort.ToUInt();
|
||||
m_uPort = sPort.ToUShort();
|
||||
}
|
||||
|
||||
CWebAdminSock* pListenSock = new CWebAdminSock(this);
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
unsigned int m_uPort;
|
||||
unsigned short m_uPort;
|
||||
CString m_sSkinName;
|
||||
set<CWebAdminSock*> m_spSocks;
|
||||
CString m_sListenHost;
|
||||
|
||||
Reference in New Issue
Block a user