]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
fix reading the author field.
[lyx.git] / src / Chktex.C
index 5e2fe5ce6ae5495036425029e011dd645355f79e..4ad44c2fca4447f674d3bed647f6f585718989f4 100644 (file)
 #include <config.h>
 
 #include "Chktex.h"
-#include "LaTeX.h" // TeXErrors
-#include "lyxlex.h"
-#include "debug.h"
 #include "gettext.h"
 
-#include "support/FileInfo.h"
+#include "LaTeX.h" // TeXErrors
+
 #include "support/filetools.h"
-#include "support/systemcall.h"
-#include "support/path.h"
 #include "support/lstrings.h"
+#include "support/lyxlib.h"
+#include "support/systemcall.h"
 
-#include "support/BoostFormat.h"
+#include <boost/format.hpp>
 
 #include <fstream>
 
-using namespace lyx::support;
+using lyx::support::atoi;
+using lyx::support::ChangeExtension;
+using lyx::support::OnlyFilename;
+using lyx::support::split;
+using lyx::support::Systemcall;
 
-using std::ifstream;
 using std::getline;
+using std::string;
+using std::ifstream;
 
 
 Chktex::Chktex(string const & chktex, string const & f, string const & p)
@@ -62,7 +65,7 @@ int Chktex::scanLogFile(TeXErrors & terr)
        string const tmp = OnlyFilename(ChangeExtension(file, ".log"));
 
 #if USE_BOOST_FORMAT
-       boost::format msg(STRCONV(_("ChkTeX warning id # %1$d")));
+       boost::format msg(_("ChkTeX warning id # %1$d"));
 #else
        string const msg(_("ChkTeX warning id # "));
 #endif
@@ -83,7 +86,7 @@ int Chktex::scanLogFile(TeXErrors & terr)
 
 #if USE_BOOST_FORMAT
                msg % warno;
-               terr.insertError(lineno, STRCONV(msg.str()), warning);
+               terr.insertError(lineno, msg.str(), warning);
                msg.clear();
 #else
                terr.insertError(lineno, msg + warno, warning);