summaryrefslogtreecommitdiff
path: root/ace/IOStream_T.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-18 21:53:07 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-18 21:53:07 +0000
commit7bbbebfbf06cf64937f3b27e51237bdf046a2a19 (patch)
tree27bbff1966e994926deb11ee2850cc4f71a66b90 /ace/IOStream_T.cpp
parent5a34e0200cd988d5113ca35f036c8a591b48e3f8 (diff)
downloadATCD-7bbbebfbf06cf64937f3b27e51237bdf046a2a19.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/IOStream_T.cpp')
-rw-r--r--ace/IOStream_T.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/IOStream_T.cpp b/ace/IOStream_T.cpp
index 5e5d2e896c7..a0b868a5513 100644
--- a/ace/IOStream_T.cpp
+++ b/ace/IOStream_T.cpp
@@ -1,12 +1,16 @@
// $Id$
-#if !defined (ACE_IOSTREAM_T_C)
+#ifndef ACE_IOSTREAM_T_C
#define ACE_IOSTREAM_T_C
#define ACE_BUILD_DLL
#include "ace/IOStream_T.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
ACE_RCSID(ace, IOStream_T, "$Id$")
#if !defined (ACE_LACKS_ACE_IOSTREAM)
@@ -70,7 +74,7 @@ ACE_IOStream<STREAM>::ACE_IOStream (STREAM &stream,
STREAM (stream)
{
ACE_NEW (streambuf_,
- ACE_Streambuf_T<STREAM> ((STREAM *) this,
+ ACE_Streambuf_T<STREAM> ((STREAM *) this,
streambuf_size));
iostream::init (this->streambuf_);
}
@@ -80,7 +84,7 @@ ACE_IOStream<STREAM>::ACE_IOStream (u_int streambuf_size)
: iostream (0)
{
ACE_NEW (this->streambuf_,
- ACE_Streambuf_T<STREAM> ((STREAM *) this,
+ ACE_Streambuf_T<STREAM> ((STREAM *) this,
streambuf_size));
iostream::init (this->streambuf_);
}