summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-03 18:03:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-03 18:03:23 +0200
commitc170347975ecc096314e9cf744d47ece6ffb1325 (patch)
tree7fad22691463d3c12a2591bac3b5f265ed011cba /src/kvilib/ext
parent72db948aa604ee7a360123208534c5aa440be22a (diff)
downloadkvirc-c170347975ecc096314e9cf744d47ece6ffb1325.tar.gz
kvirc-c170347975ecc096314e9cf744d47ece6ffb1325.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/kvilib/ext')
-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)
{