]> git.lyx.org Git - lyx.git/blobdiff - src/support/DebugStream.h
use more explicit on constructors use the pimpl idom to reduce size with about 500k
[lyx.git] / src / support / DebugStream.h
index cdf5e0841a5098f4aed917064455edb7dc2a9fdb..9e87488a087a0ecd212e983ca9e97997f093edb4 100644 (file)
@@ -2,7 +2,7 @@
 
 // Created by Lars Gullik Bjønnes
 // Copyright 1999 Lars Gullik Bjønnes (larsbj@lyx.org)
-// Released under the Gnu General Public License
+// Released into the public domain.
 
 // Implemented and tested on g++ 2.7.2.3
 
 #ifndef DEBUGSTREAM_H
 #define DEBUGSTREAM_H
 
-#ifdef _STANDARD_C_PLUS_PLUS
-#define MODERN_STL
-#endif
-
-#ifdef MODERN_STL
-#include <ostream>
-#else
-#include <iostream>
-#endif
+#include "LOstream.h"
 
 #ifdef TEST_DEBUGSTREAM
 #include <string>
@@ -42,7 +34,7 @@ struct Debug {
        /** A function to convert symbolic string names on debug levels
            to their numerical value.
        */
-       static Debug::type value(std::string const & val) {
+       static Debug::type value(string const & val) {
                if (val == "NONE") return Debug::NONE;
                if (val == "INFO") return Debug::INFO;
                if (val == "WARN") return Debug::WARN;
@@ -93,9 +85,10 @@ struct Debug {
 class DebugStream : public std::ostream {
 public:
        /// Constructor, sets the debug level to t.
-       DebugStream(Debug::type t = Debug::NONE);
+       explicit DebugStream(Debug::type t = Debug::NONE);
        
        /// Constructor, sets the log file to f, and the debug level to t.
+       explicit
        DebugStream(char const * f, Debug::type t = Debug::NONE);
 
        ///