X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FChktex.C;h=bb9258c207d60c570e0e835bbe7b4454f31f827c;hb=9ee46b846e5e84ad40ceda4f4af94aeb86cd90a2;hp=7956209a6e67c3b13701d2a7dccbbf02b931f92a;hpb=57a24ea9124812ddc5108ff1ad304ff61acc826a;p=lyx.git diff --git a/src/Chktex.C b/src/Chktex.C index 7956209a6e..bb9258c207 100644 --- a/src/Chktex.C +++ b/src/Chktex.C @@ -15,22 +15,22 @@ #include "LaTeX.h" // TeXErrors -#include "support/BoostFormat.h" +#include "support/convert.h" #include "support/filetools.h" #include "support/lstrings.h" -#include "support/lyxlib.h" #include "support/systemcall.h" +#include + #include -using lyx::support::atoi; using lyx::support::ChangeExtension; using lyx::support::OnlyFilename; using lyx::support::split; using lyx::support::Systemcall; using std::getline; - +using std::string; using std::ifstream; @@ -64,7 +64,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 @@ -81,11 +81,11 @@ int Chktex::scanLogFile(TeXErrors & terr) token = split(token, warno, ':'); token = split(token, warning, ':'); - int const lineno = atoi(line); + int const lineno = convert(line); #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);