From 45be32fea5acdcf694aa06954b19b76895ba61ec Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 23 Jul 2008 09:27:33 +0000 Subject: [PATCH] use new FileName::tempName() method. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25831 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/filetools.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index eb982a2f8a..b2a11aba10 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -321,11 +321,10 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask) LYXERR(Debug::FILES, "createTmpDir: tempdir=`" << tempdir << "'\n" << "createTmpDir: mask=`" << mask << '\''); - string const tmp_dir = tempdir.absFilename() + "/" + mask; - FileName const tmpfl = FileName::tempName(tmp_dir); + FileName const tmpfl = FileName::tempName(tempdir, mask); if (tmpfl.empty() || !tmpfl.createDirectory(0700)) { - LYXERR0("LyX could not create the temporary directory '" << tmp_dir + LYXERR0("LyX could not create temporary directory in " << tempdir << "'"); return FileName(); } -- 2.39.2