* 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
This commit is contained in:
Michael Schmitt 2006-12-02 21:23:46 +00:00
parent 9d1f78acb5
commit 2e4e48a402

View 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