X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FChktex.cpp;h=02271e308c603d381c83b089acb81423f30d8853;hb=10be0c43f20a27a1e6af82241ad5ec6b5cad3eca;hp=8683203d3b040b959aaf11244972a9932066a991;hpb=0778007050fd1b951f4ed03126893fb390f28b64;p=lyx.git diff --git a/src/Chktex.cpp b/src/Chktex.cpp index 8683203d3b..02271e308c 100644 --- a/src/Chktex.cpp +++ b/src/Chktex.cpp @@ -31,14 +31,13 @@ namespace lyx { Chktex::Chktex(string const & chktex, string const & f, string const & p) : cmd(chktex), file(f), path(p) -{ -} +{} int Chktex::run(TeXErrors &terr) { // run bibtex - string log = onlyFilename(changeExtension(file, ".log")); + string log = onlyFileName(changeExtension(file, ".log")); string tmp = cmd + " -q -v0 -b0 -x " + file + " -o " + log; Systemcall one; int result = one.startscript(Systemcall::Wait, tmp); @@ -55,9 +54,9 @@ int Chktex::scanLogFile(TeXErrors & terr) { int retval = 0; - // FIXME: Find out whether onlyFilename() is really needed, - // or whether makeAbsPath(onlyFilename()) is a noop here - FileName const tmp(makeAbsPath(onlyFilename(changeExtension(file, ".log")))); + // FIXME: Find out whether onlyFileName() is really needed, + // or whether makeAbsPath(onlyFileName()) is a noop here + FileName const tmp(makeAbsPath(onlyFileName(changeExtension(file, ".log")))); #if USE_BOOST_FORMAT boost::basic_format msg(_("ChkTeX warning id # %1$d"));