]> git.lyx.org Git - features.git/commitdiff
* src/LaTeX.C: fix compilation with gcc 3.3.5pre (SuSE Linux 9.3)
authorMichael Schmitt <michael.schmitt@teststep.org>
Sat, 2 Dec 2006 21:23:46 +0000 (21:23 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sat, 2 Dec 2006 21:23:46 +0000 (21:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16139 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeX.C

index ea81edd74c7ac4ff4fea9ed7be482992cc101bb8..2beb26becfaf919cee91bd0ed1b2a2faf025188c 100644 (file)
@@ -564,7 +564,8 @@ int LaTeX::scanLogFile(TeXErrors & terr)
        int retval = NO_ERRORS;
        string tmp = onlyFilename(changeExtension(file, ".log"));
        lyxerr[Debug::LATEX] << "Log file: " << tmp << endl;
-       ifstream ifs(FileName(makeAbsPath(tmp)).toFilesystemEncoding().c_str());
+       FileName const fn = FileName(makeAbsPath(tmp));
+       ifstream ifs(fn.toFilesystemEncoding().c_str());
 
        string token;
        while (getline(ifs, token)) {
@@ -796,7 +797,8 @@ void LaTeX::deplog(DepTable & head)
        // This line is not present if no toc should be created.
        static regex miktexTocReg("\\\\tf@toc=\\\\write.*");
 
-       ifstream ifs(FileName(makeAbsPath(logfile)).toFilesystemEncoding().c_str());
+       FileName const fn = FileName(makeAbsPath(logfile));
+       ifstream ifs(fn.toFilesystemEncoding().c_str());
        while (ifs) {
                // Ok, the scanning of files here is not sufficient.
                // Sometimes files are named by "File: xxx" only