summaryrefslogtreecommitdiff
path: root/TAO/tao/deep_free.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/deep_free.cpp')
-rw-r--r--TAO/tao/deep_free.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tao/deep_free.cpp b/TAO/tao/deep_free.cpp
index 0dd45883f26..89c04e4d4f2 100644
--- a/TAO/tao/deep_free.cpp
+++ b/TAO/tao/deep_free.cpp
@@ -436,7 +436,11 @@ CORBA::TypeCode::traverse_status
TAO_Marshal_Sequence::deep_free (CORBA::TypeCode_ptr tc,
const void *source,
const void *dest,
- CORBA::Environment &env){
+ CORBA::Environment &env)
+{
+ ACE_UNUSED_ARG (env);
+ ACE_UNUSED_ARG (dest);
+
// TAO implements sequences using inheritance from a base
// class. That class allocate and deallocates the buffer, using
// virtual methods.
@@ -446,7 +450,8 @@ TAO_Marshal_Sequence::deep_free (CORBA::TypeCode_ptr tc,
if (tc)
{
- TAO_Base_Sequence *src = ACE_reinterpret_cast(TAO_Base_Sequence*,source);
+ TAO_Base_Sequence *src =
+ ACE_reinterpret_cast(TAO_Base_Sequence*,ACE_const_cast(void*,source));
src->_deallocate_buffer ();
return CORBA::TypeCode::TRAVERSE_CONTINUE;