diff options
Diffstat (limited to 'ace/Unbounded_Queue.cpp')
-rw-r--r-- | ace/Unbounded_Queue.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ace/Unbounded_Queue.cpp b/ace/Unbounded_Queue.cpp index d265d9b9fd2..332fddb4428 100644 --- a/ace/Unbounded_Queue.cpp +++ b/ace/Unbounded_Queue.cpp @@ -166,8 +166,7 @@ ACE_Unbounded_Queue<T>::enqueue_head (const T &new_item) // Create a new node that points to the original head. ACE_NEW_MALLOC_RETURN (temp, - ACE_static_cast(ACE_Node<T> *, - this->allocator_->malloc (sizeof (ACE_Node<T>))), + static_cast<ACE_Node<T> *> (this->allocator_->malloc (sizeof (ACE_Node<T>))), ACE_Node<T> (new_item, this->head_->next_), -1); // Link this pointer into the front of the list. Note that the @@ -193,8 +192,7 @@ ACE_Unbounded_Queue<T>::enqueue_tail (const T &new_item) // Create a new dummy node. ACE_NEW_MALLOC_RETURN (temp, - ACE_static_cast(ACE_Node<T> *, - this->allocator_->malloc (sizeof (ACE_Node<T>))), + static_cast<ACE_Node<T> *> (this->allocator_->malloc (sizeof (ACE_Node<T>))), ACE_Node<T> (this->head_->next_), -1); // Link this dummy pointer into the list. |