better bool checking (#2564)

This commit is contained in:
Zach H 2017-04-01 21:29:23 -04:00 committed by GitHub
parent 9cbae8c707
commit b3c1a87f60

View file

@ -608,7 +608,7 @@ void TabSupervisor::processNotifyUserEvent(const Event_NotifyUser &event)
bool TabSupervisor::isOwnUserRegistered() const
{
return (bool) getUserInfo()->user_level() & ServerInfo_User::IsRegistered;
return static_cast<bool>(getUserInfo()->user_level() & ServerInfo_User::IsRegistered);
}
QString TabSupervisor::getOwnUsername() const