diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-21 02:32:16 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-02-21 02:32:16 +0000 |
commit | 327b98962ef5b115618db828f13f4ec0401652d3 (patch) | |
tree | 38e2ecd1e60c6ae8f1fda26fed2008624a7890df | |
parent | 02450d22c97e50074b58fcc9205df6d840841499 (diff) | |
download | ATCD-327b98962ef5b115618db828f13f4ec0401652d3.tar.gz |
ChangeLogTag:Thu Feb 20 18:31:10 2003 Ossama Othman <ossama@uci.edu>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ace/Strategies_T.cpp | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog index d5bd65b7250..7023e8963b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 20 18:31:10 2003 Ossama Othman <ossama@uci.edu> + + * ace/Strategies_T.cpp: + + Fixed "lose of const in cast" errors. + Thu Feb 20 18:20:19 2003 Ossama Othman <ossama@uci.edu> * ace/SSL/SSL_SOCK_Acceptor.h (ACE_SSL_SOCK_Acceptor): diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp index 61226c876a3..eec7d86d135 100644 --- a/ace/Strategies_T.cpp +++ b/ace/Strategies_T.cpp @@ -1,5 +1,5 @@ -#ifndef ACE_STRATEGIES_T_C -#define ACE_STRATEGIES_T_C +#ifndef ACE_STRATEGIES_T_CPP +#define ACE_STRATEGIES_T_CPP #include "ace/Strategies_T.h" @@ -945,8 +945,7 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::cache_i (const void *recycling_act) { // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; // Mark the <svc_handler> in the cache as not being <in_use>. // Therefore recyclable is IDLE. @@ -973,8 +972,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::recycle_s ACE_Recyclable_State new_state) { // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; // Mark the <svc_handler> in the cache as not being <in_use>. // Therefore recyclable is IDLE. @@ -999,8 +997,7 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_Recyclable_St ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::recycle_state_i (const void *recycling_act) const { // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; // Mark the <svc_handler> in the cache as not being <in_use>. // Therefore recyclable is IDLE. @@ -1021,8 +1018,7 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::purge_i (const void *recycling_act) { // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; return this->connection_map_.unbind (entry); } @@ -1041,8 +1037,7 @@ template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::mark_as_closed_i (const void *recycling_act) { // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; // Mark the <svc_handler> in the cache as CLOSED. entry->ext_id_.recycle_state (ACE_RECYCLABLE_CLOSED); @@ -1072,8 +1067,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::cleanup_h *act_holder = 0; // The wonders and perils of ACT - CONNECTION_MAP_ENTRY *entry = - ACE_static_cast (CONNECTION_MAP_ENTRY *, recycling_act); + CONNECTION_MAP_ENTRY *entry = (CONNECTION_MAP_ENTRY *) recycling_act; // Decrement the refcount on the <svc_handler>. int refcount = entry->ext_id_.decrement (); @@ -1237,4 +1231,4 @@ ACE_ALLOC_HOOK_DEFINE(ACE_Process_Strategy) ACE_ALLOC_HOOK_DEFINE(ACE_Accept_Strategy) ACE_ALLOC_HOOK_DEFINE(ACE_Thread_Strategy) -#endif /* ACE_STRATEGIES_T_C */ +#endif /* ACE_STRATEGIES_T_CPP */ |