refactor(Core/Misc): enforce east-const style and add codestyle check (#26492)
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
This commit is contained in:
@@ -191,7 +191,7 @@ void ChatHandler::SendSysMessage(std::string_view str, bool escapeCharacters)
|
||||
}
|
||||
}
|
||||
|
||||
void ChatHandler::SendGlobalSysMessage(const char* str)
|
||||
void ChatHandler::SendGlobalSysMessage(char const* str)
|
||||
{
|
||||
WorldPacket data;
|
||||
for (std::string_view line : Acore::Tokenize(str, '\n', true))
|
||||
@@ -201,7 +201,7 @@ void ChatHandler::SendGlobalSysMessage(const char* str)
|
||||
}
|
||||
}
|
||||
|
||||
void ChatHandler::SendGlobalGMSysMessage(const char* str)
|
||||
void ChatHandler::SendGlobalGMSysMessage(char const* str)
|
||||
{
|
||||
WorldPacket data;
|
||||
for (std::string_view line : Acore::Tokenize(str, '\n', true))
|
||||
@@ -928,7 +928,7 @@ bool CliHandler::needReportToTarget(Player* /*chr*/) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::GetPlayerGroupAndGUIDByName(const char* cname, Player*& player, Group*& group, ObjectGuid& guid, bool offline)
|
||||
bool ChatHandler::GetPlayerGroupAndGUIDByName(char const* cname, Player*& player, Group*& group, ObjectGuid& guid, bool offline)
|
||||
{
|
||||
player = nullptr;
|
||||
guid = ObjectGuid::Empty;
|
||||
|
||||
Reference in New Issue
Block a user