summaryrefslogtreecommitdiff
path: root/examples/APG
diff options
context:
space:
mode:
Diffstat (limited to 'examples/APG')
-rw-r--r--examples/APG/Logging/LogManager.h4
-rw-r--r--examples/APG/Logging/Use_Multiple_Sinks.cpp2
-rw-r--r--examples/APG/Logging/Use_Ostream.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/APG/Logging/LogManager.h b/examples/APG/Logging/LogManager.h
index 1ab99d2cd14..7ffe5a05743 100644
--- a/examples/APG/Logging/LogManager.h
+++ b/examples/APG/Logging/LogManager.h
@@ -31,7 +31,7 @@ public:
// Exclude 1
private:
- std::ofstream *log_stream_;
+ ofstream *log_stream_;
ACE_OSTREAM_TYPE *output_stream_;
// Exclude 1
};
@@ -71,7 +71,7 @@ void LogManager::redirectToOStream (ACE_OSTREAM_TYPE *output)
void LogManager::redirectToFile (const char *filename)
{
- log_stream_ = new std::ofstream ();
+ log_stream_ = new ofstream ();
log_stream_->open (filename, ios::out | ios::app);
this->redirectToOStream ((ACE_OSTREAM_TYPE *)log_stream_);
}
diff --git a/examples/APG/Logging/Use_Multiple_Sinks.cpp b/examples/APG/Logging/Use_Multiple_Sinks.cpp
index 9adef16bf7a..b2d3daec06c 100644
--- a/examples/APG/Logging/Use_Multiple_Sinks.cpp
+++ b/examples/APG/Logging/Use_Multiple_Sinks.cpp
@@ -13,7 +13,7 @@ int ACE_TMAIN (int, ACE_TCHAR *argv[])
ACE_TRACE ("main");
ACE_OSTREAM_TYPE *output =
- (ACE_OSTREAM_TYPE *) new std::ofstream ("ostream.output.test");
+ (ACE_OSTREAM_TYPE *) new ofstream ("ostream.output.test");
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%IThis will go to STDERR\n")));
diff --git a/examples/APG/Logging/Use_Ostream.cpp b/examples/APG/Logging/Use_Ostream.cpp
index 996746183c1..7187ef563f1 100644
--- a/examples/APG/Logging/Use_Ostream.cpp
+++ b/examples/APG/Logging/Use_Ostream.cpp
@@ -18,7 +18,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
*/
// Listing 2 code/ch03
ACE_OSTREAM_TYPE *output =
- (ACE_OSTREAM_TYPE *) new std::ofstream ("ostream.output.test");
+ (ACE_OSTREAM_TYPE *) new ofstream ("ostream.output.test");
ACE_LOG_MSG->msg_ostream (output, 1);
ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM);
ACE_LOG_MSG->clr_flags (ACE_Log_Msg::STDERR);