Explorar o código

constructor tweek

Cary Sandvig %!s(int64=25) %!d(string=hai) anos
pai
achega
b1f4406633
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      dtool/src/dtoolutil/pfstream.I

+ 4 - 2
dtool/src/dtoolutil/pfstream.I

@@ -12,7 +12,8 @@ INLINE void IPipeStream::flush(void) {
   _psb.flush();
   _psb.flush();
 }
 }
 
 
-INLINE IPipeStream::IPipeStream(void) : _psb(PipeStreamBuf::Input) {
+INLINE IPipeStream::IPipeStream(void)
+  : istream(&_psb), _psb(PipeStreamBuf::Input) {
   cerr << "should never call default constructor of IPipeStream" << endl;
   cerr << "should never call default constructor of IPipeStream" << endl;
 }
 }
 
 
@@ -25,6 +26,7 @@ INLINE void OPipeStream::flush(void) {
   _psb.flush();
   _psb.flush();
 }
 }
 
 
-INLINE OPipeStream::OPipeStream(void) : _psb(PipeStreamBuf::Output) {
+INLINE OPipeStream::OPipeStream(void)
+  : ostream(&_psb), _psb(PipeStreamBuf::Output) {
   cerr << "should never call default constructor of OPipeStream" << endl;
   cerr << "should never call default constructor of OPipeStream" << endl;
 }
 }