]> git.lyx.org Git - lyx.git/blobdiff - src/support/DebugStream.C
use more explicit on constructors use the pimpl idom to reduce size with about 500k
[lyx.git] / src / support / DebugStream.C
index 286fbdc97509bfeec45843ff453499a15a7e05bc..5850d3a045a2ab01e450d817c302574485d321e9 100644 (file)
@@ -19,7 +19,9 @@
 #ifdef MODERN_STL_STREAMS
 #include <fstream>
 #endif
+#include <iostream>
 
+using std::ostream;
 using std::streambuf;
 using std::streamsize;
 using std::filebuf;
@@ -185,8 +187,7 @@ DebugStream::~DebugStream()
 {
        delete nullstream.rdbuf(0); // Without this we leak
        delete rdbuf(0);            // Without this we leak
-       if (internal) // DEL LINE
-               delete internal;
+       delete internal;
 }