From c170347975ecc096314e9cf744d47ece6ffb1325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 18:03:23 +0200 Subject: Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/kvilib/ext/kvi_regusersdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kvilib') 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) { -- cgit v1.2.1