mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
13
deps/acelite/ace/Unbounded_Set_Ex.cpp
vendored
13
deps/acelite/ace/Unbounded_Set_Ex.cpp
vendored
@@ -15,7 +15,7 @@
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Set_Ex)
|
||||
ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Unbounded_Set_Ex)
|
||||
|
||||
template <class T, class C> size_t
|
||||
ACE_Unbounded_Set_Ex<T, C>::size (void) const
|
||||
@@ -226,7 +226,7 @@ ACE_Unbounded_Set_Ex<T, C>::remove (const T &item)
|
||||
{
|
||||
// ACE_TRACE ("ACE_Unbounded_Set_Ex<T, C>::remove");
|
||||
|
||||
// Insert the item to be founded into the dummy node.
|
||||
// Insert the item to be found into the dummy node.
|
||||
this->head_->item_ = item;
|
||||
|
||||
NODE *curr = this->head_;
|
||||
@@ -234,6 +234,11 @@ ACE_Unbounded_Set_Ex<T, C>::remove (const T &item)
|
||||
while (!(this->comp_ (curr->next_->item_, item)))
|
||||
curr = curr->next_;
|
||||
|
||||
// reset the dummy node. This ensures reference counted items are
|
||||
// completely released. Without this, a reference can linger as
|
||||
// the dummy long after it was removed from the list.
|
||||
this->head_->item_ = T();
|
||||
|
||||
if (curr->next_ == this->head_)
|
||||
return -1; // Item was not found.
|
||||
else
|
||||
@@ -278,7 +283,7 @@ ACE_Unbounded_Set_Ex<T, C>::end (void) const
|
||||
return const_iterator (*this, 1);
|
||||
}
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Set_Ex_Iterator)
|
||||
ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Unbounded_Set_Ex_Iterator)
|
||||
|
||||
template <class T, class C> void
|
||||
ACE_Unbounded_Set_Ex_Iterator<T, C>::dump (void) const
|
||||
@@ -385,7 +390,7 @@ ACE_Unbounded_Set_Ex_Iterator<T, C>::operator!= (const ACE_Unbounded_Set_Ex_Iter
|
||||
return (this->set_ != rhs.set_ || this->current_ != rhs.current_);
|
||||
}
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Set_Ex_Const_Iterator)
|
||||
ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Unbounded_Set_Ex_Const_Iterator)
|
||||
|
||||
template <class T, class C> void
|
||||
ACE_Unbounded_Set_Ex_Const_Iterator<T, C>::dump (void) const
|
||||
|
||||
Reference in New Issue
Block a user