diff options
Diffstat (limited to 'ace/TSS_T.cpp')
-rw-r--r-- | ace/TSS_T.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/TSS_T.cpp b/ace/TSS_T.cpp index fc25332dd1f..645a6f0612b 100644 --- a/ace/TSS_T.cpp +++ b/ace/TSS_T.cpp @@ -100,7 +100,7 @@ ACE_TSS<TYPE>::ts_init (void) const // once! if (this->once_ == 0) { - if (ACE_Thread::keycreate (ACE_const_cast (ACE_thread_key_t *, &this->key_), + if (ACE_Thread::keycreate (const_cast<ACE_thread_key_t *> (&this->key_), #if defined (ACE_HAS_THR_C_DEST) &ACE_TSS_C_cleanup, #else @@ -112,7 +112,7 @@ ACE_TSS<TYPE>::ts_init (void) const { // This *must* come last to avoid race conditions! Note that // we need to "cast away const..." - * ACE_const_cast (int*, &this->once_) = 1; + * const_cast<int*> (&this->once_) = 1; return 0; } } |