]> git.lyx.org Git - features.git/commitdiff
use new FileName::tempName() method.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 09:27:33 +0000 (09:27 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 09:27:33 +0000 (09:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25831 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.cpp

index eb982a2f8ab8af18bf64aa45c0181f71f83048a3..b2a11aba10c41ad5d6e9748deb3545c7b61f13ac 100644 (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();
        }