summaryrefslogtreecommitdiff
path: root/ace/Service_Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Service_Object.cpp')
-rw-r--r--ace/Service_Object.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp
index dfc84b28cd7..16d650271d3 100644
--- a/ace/Service_Object.cpp
+++ b/ace/Service_Object.cpp
@@ -109,8 +109,7 @@ ACE_Service_Type::fini (void)
return 1; // No implementation was found.
}
- // Cast constness away when calling fini
- int ret = const_cast<ACE_Service_Type_Impl *>(this->type_)->fini ();
+ int ret = this->type_->fini ();
// Ensure that closing the DLL is done after type_->fini() as it may
// require access to the code for the service object destructor,