]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
use anon namespace, somewhat better comp. handling of minipages, not quite there yet
[lyx.git] / src / Chktex.C
index 87a8c18972b34c038a4f93d57dfbf646d6823da1..8e315bd9bdd0bd2a4a555d6afd8cd76499829faa 100644 (file)
@@ -14,7 +14,6 @@
 #include <config.h>
 
 #include <fstream>
-#include <cstdlib> // atoi
 
 #ifdef __GNUG__
 #pragma implementation
@@ -76,7 +75,7 @@ int Chktex::scanLogFile(TeXErrors & terr)
                token = split(token, warno, ':');
                token = split(token, warning, ':');
 
-               int lineno = atoi(line.c_str());
+               int lineno = lyx::atoi(line);
                warno = _("ChkTeX warning id #") + warno;
                terr.insertError(lineno, warno, warning);
                ++retval;