]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.C
ws changes only
[lyx.git] / src / lyxlex_pimpl.C
index 4e0eafb0b85e6fb820a549755ff6d71fbc14dbf6..7b8c580e852af363f2ba437ede14c3c709361c7c 100644 (file)
 #include <config.h>
 
 #include "lyxlex_pimpl.h"
+
 #include "debug.h"
 
-#include "support/lyxalgo.h"
 #include "support/filetools.h"
+#include "support/lyxalgo.h"
 #include "support/lstrings.h"
 
-
-using namespace lyx::support;
+using lyx::support::compare_ascii_no_case;
+using lyx::support::getExtFromContents;
+using lyx::support::MakeDisplayPath;
+using lyx::support::split;
+using lyx::support::subst;
 
 using std::endl;
 using std::getline;
 using std::lower_bound;
 using std::sort;
-
+using std::string;
 using std::ios;
 using std::istream;
 using std::ostream;
@@ -129,7 +133,7 @@ bool LyXLex::Pimpl::setFile(string const & filename)
        string const format = getExtFromContents(filename);
 
        if (format == "gzip" || format == "zip" || format == "compress") {
-               lyxerr << "lyxlex: compressed" << endl;
+               lyxerr[Debug::LYXLEX] << "lyxlex: compressed" << endl;
 
                // The check only outputs a debug message, because it triggers
                // a bug in compaq cxx 6.2, where is_open() returns 'true' for
@@ -143,7 +147,7 @@ bool LyXLex::Pimpl::setFile(string const & filename)
                lineno = 0;
                return gz__.is_open() && is.good();
        } else {
-               lyxerr << "lyxlex: UNcompressed" << endl;
+               lyxerr[Debug::LYXLEX] << "lyxlex: UNcompressed" << endl;
 
                // The check only outputs a debug message, because it triggers
                // a bug in compaq cxx 6.2, where is_open() returns 'true' for