[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)

This commit is contained in:
Treeston
2020-08-24 16:17:56 +02:00
committed by GitHub
parent ec783fcbb5
commit 11c4a60fbe
13 changed files with 549 additions and 524 deletions
+2 -2
View File
@@ -1706,7 +1706,7 @@ public:
return true;
}
static bool HandleDebugOutOfBounds([[maybe_unused]] ChatHandler* handler, CommandArgs* /*args*/)
static bool HandleDebugOutOfBounds([[maybe_unused]] ChatHandler* handler)
{
#ifdef ASAN
uint8 stack_array[10] = {};
@@ -1852,7 +1852,7 @@ public:
handler->PSendSysMessage("Entry: %u Count: %u", p.first, p.second);
}
static bool HandleDebugDummyCommand(ChatHandler* handler, CommandArgs* /*args*/)
static bool HandleDebugDummyCommand(ChatHandler* handler)
{
handler->SendSysMessage("This command does nothing right now. Edit your local core (cs_debug.cpp) to make it do whatever you need for testing.");
return true;