]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
* docstream: factorize out some code and introduce odocfstream::reset()
[lyx.git] / src / Lexer.cpp
index 2486d52817fc8f707bc51e68c5eb9968cb537e1c..d8dbe629e6d44dfceafb896cdc29624409a5d211 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "Lexer.h"
 
-#include "debug.h"
+#include "support/debug.h"
 
 #include "support/convert.h"
 #include "support/filetools.h"
@@ -260,8 +260,8 @@ bool Lexer::Pimpl::setFile(FileName const & filename)
                // a bug in compaq cxx 6.2, where is_open() returns 'true' for
                // a fresh new filebuf.  (JMarc)
                if (gz_.is_open() || istream::off_type(is.tellg()) > -1)
-                       lyxerr[Debug::LYXLEX] << "Error in LyXLex::setFile: "
-                               "file or stream already set." << endl;
+                       LYXERR(Debug::LYXLEX, "Error in LyXLex::setFile: "
+                               "file or stream already set.");
                gz_.open(filename.toFilesystemEncoding().c_str(), ios::in);
                is.rdbuf(&gz_);
                name = filename.absFilename();