summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-02-06 10:32:14 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-02-06 10:32:14 +0000
commitcabe5a66ece7c7acc1ccdbe5184b7f1d2757327e (patch)
treec05a41489857ecd9acbc9b321d545a8033e28235
parent6dd5ebc49d262cf72cb76ccd474f77ddaf5f0476 (diff)
downloadATCD-cabe5a66ece7c7acc1ccdbe5184b7f1d2757327e.tar.gz
ChangeLogTag: Sun Feb 6 10:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--ace/Event_Handler.cpp4
-rw-r--r--ace/LSOCK_Stream.cpp2
-rw-r--r--ace/Service_Object.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/ace/Event_Handler.cpp b/ace/Event_Handler.cpp
index 5db15c15e41..5ea84a6c9a3 100644
--- a/ace/Event_Handler.cpp
+++ b/ace/Event_Handler.cpp
@@ -249,7 +249,7 @@ ACE_Event_Handler::reference_counting_policy (void)
ACE_THR_FUNC_RETURN
ACE_Event_Handler::read_adapter (void *args)
{
- ACE_Event_Handler *this_ptr = (ACE_Event_Handler *) args;
+ ACE_Event_Handler *this_ptr = static_cast<ACE_Event_Handler *> (args);
ACE_HANDLE handle = this_ptr->get_handle ();
if (handle == ACE_INVALID_HANDLE)
@@ -275,7 +275,7 @@ ACE_Event_Handler::register_stdin_handler (ACE_Event_Handler *eh,
ACE_UNUSED_ARG (reactor);
eh->reactor (reactor);
- return thr_mgr->spawn (&read_adapter, (void *) eh, flags);
+ return thr_mgr->spawn (&read_adapter, static_cast<void *> (eh), flags);
#else
// Keep compilers happy.
ACE_UNUSED_ARG (flags);
diff --git a/ace/LSOCK_Stream.cpp b/ace/LSOCK_Stream.cpp
index caca16b372b..d1246cec230 100644
--- a/ace/LSOCK_Stream.cpp
+++ b/ace/LSOCK_Stream.cpp
@@ -72,7 +72,7 @@ ACE_LSOCK_Stream::send_msg (const iovec iov[],
cmsghdr *cmsgptr = (cmsghdr *) cmsgbuf;
#endif /* ACE_HAS_4_4BSD_SENDMSG_RECVMSG */
- send_msg.msg_iov = (iovec *) iov;
+ send_msg.msg_iov = const_cast <iovec *> (iov);
send_msg.msg_iovlen = n;
send_msg.msg_name = 0;
send_msg.msg_namelen = 0;
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp
index 5faf5cd09ca..42786291f87 100644
--- a/ace/Service_Object.cpp
+++ b/ace/Service_Object.cpp
@@ -61,7 +61,7 @@ ACE_Service_Type::~ACE_Service_Type (void)
this->fini ();
- delete [] (ACE_TCHAR *) this->name_;
+ delete [] const_cast <ACE_TCHAR *> (this->name_);
}
int