summaryrefslogtreecommitdiff
path: root/examples/C++NPv1/Logging_Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv1/Logging_Client.cpp')
-rw-r--r--examples/C++NPv1/Logging_Client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/C++NPv1/Logging_Client.cpp b/examples/C++NPv1/Logging_Client.cpp
index fe6f65506dd..614b557c551 100644
--- a/examples/C++NPv1/Logging_Client.cpp
+++ b/examples/C++NPv1/Logging_Client.cpp
@@ -31,8 +31,7 @@ int operator<< (ACE_OutputCDR &cdr, const ACE_Log_Record &log_record)
// know that no members are modified here, we can safely const_cast
// the log_record parameter without violating the interface
// contract.
- ACE_Log_Record &nonconst_record = (ACE_const_cast (ACE_Log_Record&,
- log_record));
+ ACE_Log_Record &nonconst_record = (const_cast<ACE_Log_Record&> (log_record));
// Insert each field from <log_record> into the output CDR stream.
cdr << ACE_CDR::Long (log_record.type ());
cdr << ACE_CDR::Long (log_record.pid ());