use new FileName::tempName() method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25831 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-23 09:27:33 +00:00
parent d79ee740b3
commit 45be32fea5

View File

@ -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();
}