summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 01:48:40 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 01:48:40 +0000
commit7e4db64fcdcd37adedaf6f5e3715cbfe9bd4481d (patch)
tree54d46006fa9bcc6a3db76c8f7c1b355b5b1fcf72
parentc3abaaa10f0483ec36554c1f1ea17bd10c19b24d (diff)
downloadATCD-7e4db64fcdcd37adedaf6f5e3715cbfe9bd4481d.tar.gz
Changed dynamic_cast to static_cast.
-rw-r--r--ace/Containers_T.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp
index b026d0f600d..d8011487bc9 100644
--- a/ace/Containers_T.cpp
+++ b/ace/Containers_T.cpp
@@ -647,7 +647,7 @@ template <class T>
ACE_Double_Linked_List_Iterator<T>::ACE_Double_Linked_List_Iterator (ACE_Double_Linked_List<T> &dll)
: dllist_ (dll)
{
- this->current_ = ACE_dynamic_cast (T*, dll.head_->next_); // Initialize head ptr.
+ this->current_ = ACE_static_cast (T*, dll.head_->next_); // Initialize head ptr.
}
template <class T> T *
@@ -664,7 +664,7 @@ ACE_Double_Linked_List_Iterator<T>::do_advance (void)
{
if (this->not_done ())
{
- this->current_ = ACE_dynamic_cast (T*, this->current_->next_);
+ this->current_ = ACE_static_cast (T*, this->current_->next_);
return this->not_done ();
}
else
@@ -686,7 +686,7 @@ ACE_Double_Linked_List_Iterator<T>::advance (void)
template <class T> int
ACE_Double_Linked_List_Iterator<T>::first (void)
{
- this->current_ = ACE_dynamic_cast (T*, dllist_.head_->next_);
+ this->current_ = ACE_static_cast (T*, dllist_.head_->next_);
return this->not_done () ? 1 : 0;
}
@@ -788,7 +788,7 @@ ACE_Double_Linked_List<T>::delete_head (void)
if (this->is_empty ())
return 0;
- temp = ACE_dynamic_cast (T *, this->head_->next_);
+ temp = ACE_static_cast (T *, this->head_->next_);
this->remove_element (temp); // Detach it from the list.
return temp;
}
@@ -801,7 +801,7 @@ ACE_Double_Linked_List<T>::delete_tail (void)
if (this->is_empty ())
return 0;
- temp = ACE_dynamic_cast (T*, this->head_->prev_);
+ temp = ACE_static_cast (T*, this->head_->prev_);
this->remove_element (temp); // Detach it from the list.
return temp;
}
@@ -878,7 +878,7 @@ ACE_Double_Linked_List<T>::delete_nodes (void)
{
while (! this->is_empty ())
{
- T * temp = ACE_dynamic_cast (T*, this->head_->next_);
+ T * temp = ACE_static_cast (T*, this->head_->next_);
this->remove_element (temp);
delete temp;
}
@@ -908,7 +908,7 @@ ACE_Double_Linked_List<T>::insert_element (T *new_item,
old_item = this->head_;
if (before)
- old_item = ACE_dynamic_cast (T*, old_item->prev_);
+ old_item = ACE_static_cast (T*, old_item->prev_);
new_item->next_ = old_item->next_;
new_item->next_->prev_ = new_item;
@@ -2317,4 +2317,3 @@ ACE_Array_Iterator<T>::next (T *&item)
}
#endif /* ACE_CONTAINERS_T_C */
-