mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
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…
Add table
Add a link
Reference in a new issue