]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
the convert patch
[lyx.git] / src / Chktex.C
index 4ad44c2fca4447f674d3bed647f6f585718989f4..bb9258c207d60c570e0e835bbe7b4454f31f827c 100644 (file)
 
 #include "LaTeX.h" // TeXErrors
 
+#include "support/convert.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
-#include "support/lyxlib.h"
 #include "support/systemcall.h"
 
 #include <boost/format.hpp>
 
 #include <fstream>
 
-using lyx::support::atoi;
 using lyx::support::ChangeExtension;
 using lyx::support::OnlyFilename;
 using lyx::support::split;
@@ -82,7 +81,7 @@ int Chktex::scanLogFile(TeXErrors & terr)
                token = split(token, warno, ':');
                token = split(token, warning, ':');
 
-               int const lineno = atoi(line);
+               int const lineno = convert<int>(line);
 
 #if USE_BOOST_FORMAT
                msg % warno;