summaryrefslogtreecommitdiff
path: root/examples/Log_Msg/test_ostream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Log_Msg/test_ostream.cpp')
-rw-r--r--examples/Log_Msg/test_ostream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/Log_Msg/test_ostream.cpp b/examples/Log_Msg/test_ostream.cpp
index 098e5de05a0..68abe913852 100644
--- a/examples/Log_Msg/test_ostream.cpp
+++ b/examples/Log_Msg/test_ostream.cpp
@@ -46,8 +46,7 @@ main (int, char *[])
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
// Create a persistent store.
const char *filename = "output";
- int flags = ios::out | ios::trunc;
- ofstream myostream (filename, flags);
+ ofstream myostream (filename, ios::out | ios::trunc);
// Check for errors.
if (myostream.bad ())