better bool checking (#2564)
This commit is contained in:
parent
9cbae8c707
commit
b3c1a87f60
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ void TabSupervisor::processNotifyUserEvent(const Event_NotifyUser &event)
|
||||||
|
|
||||||
bool TabSupervisor::isOwnUserRegistered() const
|
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
|
QString TabSupervisor::getOwnUsername() const
|
||||||
|
|
Loading…
Reference in a new issue