mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
refactor(Core): remove unused imports (#9767)
This commit is contained in:
@@ -77,7 +77,7 @@ namespace AddonMgr
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
BannedAddon addon;
|
||||
BannedAddon addon{};
|
||||
addon.Id = fields[0].GetUInt32() + offset;
|
||||
addon.Timestamp = uint32(fields[3].GetUInt64());
|
||||
|
||||
@@ -113,11 +113,12 @@ namespace AddonMgr
|
||||
|
||||
SavedAddon const* GetAddonInfo(const std::string& name)
|
||||
{
|
||||
for (SavedAddonsList::const_iterator it = m_knownAddons.begin(); it != m_knownAddons.end(); ++it)
|
||||
for (auto const& addon : m_knownAddons)
|
||||
{
|
||||
SavedAddon const& addon = (*it);
|
||||
if (addon.Name == name)
|
||||
{
|
||||
return &addon;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user