diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-09 20:38:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 19:20:18 +0100 |
commit | b6635be04184cdea0e3ed269cc1687f72c3dc5a9 (patch) | |
tree | d66809191630116aed2afb507b9e8949d7366492 /src/server/game/Globals/ObjectMgr.cpp | |
parent | 42be7836dfacd9e8d6b0c2b5d5f230ed6a55f088 (diff) |
[3.3.5] Core/Guilds: Guild cleanup (PR #25422)
(cherry picked from commit cd28423a4e813baf6833f38c93613a7f82a721f8)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 45213a1e214..c8334a3dfaf 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -8641,7 +8641,7 @@ void ObjectMgr::LoadReservedPlayersNames() TC_LOG_INFO("server.loading", ">> Loaded %u reserved player names in %u ms", count, GetMSTimeDiffToNow(oldMSTime)); } -bool ObjectMgr::IsReservedName(const std::string& name) const +bool ObjectMgr::IsReservedName(std::string_view name) const { std::wstring wstr; if (!Utf8toWStr (name, wstr)) @@ -8725,7 +8725,7 @@ bool isValidString(const std::wstring& wstr, uint32 strictMask, bool numericOrSp return false; } -ResponseCodes ObjectMgr::CheckPlayerName(std::string const& name, LocaleConstant locale, bool create /*= false*/) +ResponseCodes ObjectMgr::CheckPlayerName(std::string_view name, LocaleConstant locale, bool create /*= false*/) { std::wstring wname; if (!Utf8toWStr(name, wname)) @@ -8750,7 +8750,7 @@ ResponseCodes ObjectMgr::CheckPlayerName(std::string const& name, LocaleConstant return sDB2Manager.ValidateName(wname, locale); } -bool ObjectMgr::IsValidCharterName(const std::string& name) +bool ObjectMgr::IsValidCharterName(std::string_view name) { std::wstring wname; if (!Utf8toWStr(name, wname)) @@ -8768,7 +8768,7 @@ bool ObjectMgr::IsValidCharterName(const std::string& name) return isValidString(wname, strictMask, true); } -PetNameInvalidReason ObjectMgr::CheckPetName(const std::string& name) +PetNameInvalidReason ObjectMgr::CheckPetName(std::string_view name) { std::wstring wname; if (!Utf8toWStr(name, wname)) @@ -9084,7 +9084,7 @@ void ObjectMgr::LoadGameTele() TC_LOG_INFO("server.loading", ">> Loaded %u GameTeleports in %u ms", count, GetMSTimeDiffToNow(oldMSTime)); } -GameTele const* ObjectMgr::GetGameTele(const std::string& name) const +GameTele const* ObjectMgr::GetGameTele(std::string_view name) const { // explicit name case std::wstring wname; @@ -9107,7 +9107,7 @@ GameTele const* ObjectMgr::GetGameTele(const std::string& name) const return alt; } -GameTele const* ObjectMgr::GetGameTeleExactName(const std::string& name) const +GameTele const* ObjectMgr::GetGameTeleExactName(std::string_view name) const { // explicit name case std::wstring wname; @@ -9159,7 +9159,7 @@ bool ObjectMgr::AddGameTele(GameTele& tele) return true; } -bool ObjectMgr::DeleteGameTele(const std::string& name) +bool ObjectMgr::DeleteGameTele(std::string_view name) { // explicit name case std::wstring wname; |