mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-27 11:15:29 -05:00
better bool checking (#2564)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user