summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_regusersdb.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-09-03 18:03:23 +0200
committerSlávek Banko <[email protected]>2016-09-03 18:03:32 +0200
commit1d821545d608b09e4cf3798178bdc4620026d217 (patch)
treeb3ce0d16fff9dc7b700dbc329a49a48a611b330d /src/kvilib/ext/kvi_regusersdb.cpp
parent0cc94235c2e5ccfcc7ba38a957f35b62d0ebbc93 (diff)
downloadkvirc-1d821545d608b09e4cf3798178bdc4620026d217.tar.gz
kvirc-1d821545d608b09e4cf3798178bdc4620026d217.zip
Fix FTBFS with GCC6r14.0.4
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c170347975ecc096314e9cf744d47ece6ffb1325)
Diffstat (limited to 'src/kvilib/ext/kvi_regusersdb.cpp')
-rw-r--r--src/kvilib/ext/kvi_regusersdb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kvilib/ext/kvi_regusersdb.cpp b/src/kvilib/ext/kvi_regusersdb.cpp
index 1edd2d77..dcbd58a2 100644
--- a/src/kvilib/ext/kvi_regusersdb.cpp
+++ b/src/kvilib/ext/kvi_regusersdb.cpp
@@ -330,7 +330,7 @@ KviRegisteredUserDataBase::~KviRegisteredUserDataBase()
KviRegisteredUser * KviRegisteredUserDataBase::addUser(const TQString & name)
{
- if(name.isEmpty()) return false;
+ if(name.isEmpty()) return 0;
if(m_pUserDict->find(name))return 0;
KviRegisteredUser * u = new KviRegisteredUser(name);
m_pUserDict->replace(u->name(),u); //u->name() because we're NOT copying keys!
@@ -340,7 +340,7 @@ KviRegisteredUser * KviRegisteredUserDataBase::addUser(const TQString & name)
KviRegisteredUserGroup * KviRegisteredUserDataBase::addGroup(const TQString & name)
{
- if(name.isEmpty()) return false;
+ if(name.isEmpty()) return 0;
if(m_pGroupDict->find(name))return 0;
KviRegisteredUserGroup * pGroup = new KviRegisteredUserGroup(name);
m_pGroupDict->replace(pGroup->name(),pGroup); //u->name() because we're NOT copying keys!
@@ -592,7 +592,7 @@ KviRegisteredUser * KviRegisteredUserDataBase::findMatchingUser(const TQString &
KviRegisteredMask * KviRegisteredUserDataBase::findMatchingMask(const TQString & nick,const TQString &user,const TQString & host)
{
// first lookup the nickname in the maskDict
- if(nick.isEmpty()) return false;
+ if(nick.isEmpty()) return 0;
KviRegisteredMaskList * l = m_pMaskDict->find(nick);
if(l)
{