refactor(Core): remove unused imports (#9767)
This commit is contained in:
parent
d2d99bccc7
commit
cbc7e5466a
79 changed files with 76 additions and 103 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue