[10594] Use equal_range instead of lower_bound/upper_bound pairs

(based on zergtmn's repo commit 0499169)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zerg 2010-10-09 00:54:25 +04:00 committed by VladimirMangos
parent 0caa0e32dd
commit 2fa5fa43bd
13 changed files with 207 additions and 182 deletions

View file

@ -1391,11 +1391,11 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
SpellAuraHolderBounds GetSpellAuraHolderBounds(uint32 spell_id)
{
return SpellAuraHolderBounds(m_spellAuraHolders.lower_bound(spell_id), m_spellAuraHolders.upper_bound(spell_id));
return m_spellAuraHolders.equal_range(spell_id);
}
SpellAuraHolderConstBounds GetSpellAuraHolderBounds(uint32 spell_id) const
{
return SpellAuraHolderConstBounds(m_spellAuraHolders.lower_bound(spell_id), m_spellAuraHolders.upper_bound(spell_id));
return m_spellAuraHolders.equal_range(spell_id);
}
bool HasAuraType(AuraType auraType) const;