summaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2024-07-31 01:06:46 +0200
committerGitHub <noreply@github.com>2024-07-30 20:06:46 -0300
commit02a05fbd4c640b33b1e03075681f169db2fb6ab2 (patch)
treecfe8879750af8cd87d3ebbea244dd88c52e47275 /src/server/game/Globals/ObjectMgr.cpp
parent06a608d244cf24d5077cbcdf547993d2a0e30659 (diff)
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 458dfcfc3c..2b07f99ba8 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -381,7 +381,7 @@ void ObjectMgr::AddLocaleString(std::string&& s, LocaleConstant locale, std::vec
{
if (!s.empty())
{
- if (data.size() <= size_t(locale))
+ if (data.size() <= std::size_t(locale))
data.resize(locale + 1);
data[locale] = std::move(s);
@@ -5514,9 +5514,9 @@ void ObjectMgr::LoadEventScripts()
if (spell->Effects[j].MiscValue)
evt_scripts.insert(spell->Effects[j].MiscValue);
- for (size_t path_idx = 0; path_idx < sTaxiPathNodesByPath.size(); ++path_idx)
+ for (std::size_t path_idx = 0; path_idx < sTaxiPathNodesByPath.size(); ++path_idx)
{
- for (size_t node_idx = 0; node_idx < sTaxiPathNodesByPath[path_idx].size(); ++node_idx)
+ for (std::size_t node_idx = 0; node_idx < sTaxiPathNodesByPath[path_idx].size(); ++node_idx)
{
TaxiPathNodeEntry const* node = sTaxiPathNodesByPath[path_idx][node_idx];
@@ -8388,7 +8388,7 @@ uint8 ObjectMgr::CheckPlayerName(std::string_view name, bool create)
// Check for three consecutive letters
wstrToLower(wname);
- for (size_t i = 2; i < wname.size(); ++i)
+ for (std::size_t i = 2; i < wname.size(); ++i)
if (wname[i] == wname[i - 1] && wname[i] == wname[i - 2])
return CHAR_NAME_THREE_CONSECUTIVE;
@@ -8581,7 +8581,7 @@ char const* ObjectMgr::GetAcoreString(uint32 entry, LocaleConstant locale) const
{
if (AcoreString const* ts = GetAcoreString(entry))
{
- if (ts->Content.size() > size_t(locale) && !ts->Content[locale].empty())
+ if (ts->Content.size() > std::size_t(locale) && !ts->Content[locale].empty())
return ts->Content[locale].c_str();
return ts->Content[DEFAULT_LOCALE].c_str();