]> git.lyx.org Git - lyx.git/blobdiff - src/Chktex.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / Chktex.C
index 8e315bd9bdd0bd2a4a555d6afd8cd76499829faa..fbe1f047fcb7207f5acd38b81fc57068605b23ca 100644 (file)
@@ -3,7 +3,7 @@
  * 
  *           LyX, The Document Processor        
  *          Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  *           This file is Copyright 1997-1998
  *           Asger Alstrup
@@ -28,6 +28,7 @@
 #include "support/syscall.h"
 #include "support/syscontr.h"
 #include "support/path.h"
+#include "support/lstrings.h"
 #include "gettext.h"
 
 using std::ifstream;
@@ -68,7 +69,11 @@ int Chktex::scanLogFile(TeXErrors & terr)
 
        ifstream ifs(tmp.c_str());
        while (getline(ifs, token)) {
-               string srcfile, line, pos, warno, warning;
+               string srcfile;
+               string line;
+               string pos;
+               string warno;
+               string warning;
                token = split(token, srcfile, ':');
                token = split(token, line, ':');
                token = split(token, pos, ':');