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
This commit is contained in:
@@ -129,7 +129,7 @@ public:
|
||||
|
||||
~CreatureTextLocalizer()
|
||||
{
|
||||
for (size_t i = 0; i < _packetCache.size(); ++i)
|
||||
for (std::size_t i = 0; i < _packetCache.size(); ++i)
|
||||
{
|
||||
if (_packetCache[i])
|
||||
delete _packetCache[i]->first;
|
||||
@@ -141,14 +141,14 @@ public:
|
||||
{
|
||||
LocaleConstant loc_idx = player->GetSession()->GetSessionDbLocaleIndex();
|
||||
WorldPacket* messageTemplate;
|
||||
size_t whisperGUIDpos;
|
||||
std::size_t whisperGUIDpos;
|
||||
|
||||
// create if not cached yet
|
||||
if (!_packetCache[loc_idx])
|
||||
{
|
||||
messageTemplate = new WorldPacket();
|
||||
whisperGUIDpos = _builder(messageTemplate, loc_idx);
|
||||
_packetCache[loc_idx] = new std::pair<WorldPacket*, size_t>(messageTemplate, whisperGUIDpos);
|
||||
_packetCache[loc_idx] = new std::pair<WorldPacket*, std::size_t>(messageTemplate, whisperGUIDpos);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<std::pair<WorldPacket*, size_t>* > _packetCache;
|
||||
std::vector<std::pair<WorldPacket*, std::size_t>* > _packetCache;
|
||||
Builder const& _builder;
|
||||
ChatMsg _msgType;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user