diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-07 02:06:03 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-07 02:06:03 +0000 |
commit | 4bf13a546b1c5a38c23afa3a9a22fc1796028f22 (patch) | |
tree | 466e98a988c50bb171eb50fa33999299a8ae9c11 | |
parent | e56e97cf39dbdcb63f807f3bac0c2fc034d191b7 (diff) | |
download | ATCD-4bf13a546b1c5a38c23afa3a9a22fc1796028f22.tar.gz |
Cleaned up ternary operator in format_msg() by parenthesizing some
expressions.
-rw-r--r-- | ace/Log_Record.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Log_Record.cpp b/ace/Log_Record.cpp index 7cb89f44353..d3729cbe707 100644 --- a/ace/Log_Record.cpp +++ b/ace/Log_Record.cpp @@ -138,8 +138,8 @@ ACE_Log_Record::format_msg (const ASYS_TCHAR *host_name, const ASYS_TCHAR *lhost_name = (const ASYS_TCHAR *) ((host_name == 0) ? ((char *) ASYS_TEXT ("<local_host>")) : ((char *) host_name)); # else /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */ - const ASYS_TCHAR *lhost_name = host_name == - 0 ? ASYS_TEXT ("<local_host>") : host_name; + const ASYS_TCHAR *lhost_name = ((host_name == 0) + ? ASYS_TEXT ("<local_host>") : host_name); # endif /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */ ACE_OS::sprintf (verbose_msg, |