From 2e4e48a40243050bacf6f6e0c04cd24afa553869 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Sat, 2 Dec 2006 21:23:46 +0000 Subject: [PATCH] * src/LaTeX.C: fix compilation with gcc 3.3.5pre (SuSE Linux 9.3) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16139 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LaTeX.C b/src/LaTeX.C index ea81edd74c..2beb26becf 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -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 -- 2.39.5