aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/thread.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2010-07-14 13:31:37 +0000
committerGravatar Szymon Tomasz Stefanek2010-07-14 13:31:37 +0000
commit484d98ded2038f4dd262d546b4e0fe460d907bd4 (patch)
tree4e9541dab6a937b8f580912e8c7d6decce42ef68 /src/modules/dcc/thread.cpp
parentupdated some mediaplayer homepage urls and some other typos, thanks xoffice (diff)
downloadKVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.gz
KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.bz2
KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.zip
Rewrite parts of the regchan module in order to
avoid the heavy usage of pointers. Add some new nice debug macros and tools. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4669 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dcc/thread.cpp')
-rw-r--r--src/modules/dcc/thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/dcc/thread.cpp b/src/modules/dcc/thread.cpp
index bee9d374c..d89f8422e 100644
--- a/src/modules/dcc/thread.cpp
+++ b/src/modules/dcc/thread.cpp
@@ -22,8 +22,6 @@
//
//=============================================================================
-#define _KVI_DEBUG_CHECK_RANGE_
-
#include "thread.h"
#include "kvi_debug.h"
@@ -57,7 +55,7 @@ KviDccThread::~KviDccThread()
m_pSSL = 0;
#endif
if(m_fd != KVI_INVALID_SOCKET)kvi_socket_close(m_fd);
- __range_invalid(m_pMutex->locked());
+ KVI_ASSERT(!m_pMutex->locked());
delete m_pMutex;
}
@@ -71,7 +69,7 @@ void KviDccThread::setSSL(KviSSL * s)
bool KviDccThread::handleInvalidSocketRead(int readLen)
{
- __range_valid(readLen < 1);
+ KVI_ASSERT(readLen < 1);
if(readLen == 0)
{
// connection closed