refactor(Core): apply clang-tidy modernize-use-bool-literals (#3826)
This commit is contained in:
@@ -213,7 +213,7 @@ void AuthSocket::OnRead()
|
|||||||
uint32 challengesInARowRealmList = 0;
|
uint32 challengesInARowRealmList = 0;
|
||||||
|
|
||||||
uint8 _cmd;
|
uint8 _cmd;
|
||||||
while (1)
|
while (true)
|
||||||
{
|
{
|
||||||
if (!socket().recv_soft((char*)&_cmd, 1))
|
if (!socket().recv_soft((char*)&_cmd, 1))
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -747,7 +747,7 @@ public:
|
|||||||
/// Get a server configuration element (see #WorldConfigs)
|
/// Get a server configuration element (see #WorldConfigs)
|
||||||
bool getBoolConfig(WorldBoolConfigs index) const
|
bool getBoolConfig(WorldBoolConfigs index) const
|
||||||
{
|
{
|
||||||
return index < BOOL_CONFIG_VALUE_COUNT ? m_bool_configs[index] : 0;
|
return index < BOOL_CONFIG_VALUE_COUNT ? m_bool_configs[index] : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set a server configuration element (see #WorldConfigs)
|
/// Set a server configuration element (see #WorldConfigs)
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ namespace MMAP
|
|||||||
|
|
||||||
void MapBuilder::WorkerThread()
|
void MapBuilder::WorkerThread()
|
||||||
{
|
{
|
||||||
while (1)
|
while (true)
|
||||||
{
|
{
|
||||||
uint32 mapId = 0;
|
uint32 mapId = 0;
|
||||||
|
|
||||||
@@ -885,7 +885,7 @@ namespace MMAP
|
|||||||
|
|
||||||
// now that tile is written to disk, we can unload it
|
// now that tile is written to disk, we can unload it
|
||||||
navMesh->removeTile(tileRef, nullptr, nullptr);
|
navMesh->removeTile(tileRef, nullptr, nullptr);
|
||||||
} while (0);
|
} while (false);
|
||||||
|
|
||||||
if (m_debugOutput)
|
if (m_debugOutput)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user