]> git.lyx.org Git - lyx.git/blobdiff - src/support/DebugStream.C
small changes read ChangeLog
[lyx.git] / src / support / DebugStream.C
index ea6bbab2313ad67c778c725f2f32480ce4267cf7..a4b94004f5b4ae2f5c40dd9f477a6f2a45dfa2f9 100644 (file)
@@ -9,6 +9,10 @@
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 //#include "DebugStream.h"
 #include "debug.h"
 
@@ -19,7 +23,9 @@
 #ifdef MODERN_STL_STREAMS
 #include <fstream>
 #endif
+#include <iostream>
 
+using std::ostream;
 using std::streambuf;
 using std::streamsize;
 using std::filebuf;
@@ -185,8 +191,7 @@ DebugStream::~DebugStream()
 {
        delete nullstream.rdbuf(0); // Without this we leak
        delete rdbuf(0);            // Without this we leak
-       if (internal)
-               delete internal;
+       delete internal;
 }