mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
d79ee740b3
commit
45be32fea5
@ -321,11 +321,10 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask)
|
|||||||
LYXERR(Debug::FILES, "createTmpDir: tempdir=`" << tempdir << "'\n"
|
LYXERR(Debug::FILES, "createTmpDir: tempdir=`" << tempdir << "'\n"
|
||||||
<< "createTmpDir: mask=`" << mask << '\'');
|
<< "createTmpDir: mask=`" << mask << '\'');
|
||||||
|
|
||||||
string const tmp_dir = tempdir.absFilename() + "/" + mask;
|
FileName const tmpfl = FileName::tempName(tempdir, mask);
|
||||||
FileName const tmpfl = FileName::tempName(tmp_dir);
|
|
||||||
|
|
||||||
if (tmpfl.empty() || !tmpfl.createDirectory(0700)) {
|
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();
|
return FileName();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user