]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.C
various changes
[lyx.git] / src / support / filetools.C
index 366f57097de7fd49c40455f156e681acb82f5bba..10335730aac05a05de296288debc686638ebdd97 100644 (file)
@@ -466,12 +466,12 @@ int DestroyTmpDir(string const & tmpdir, bool Allfiles)
 
 string const CreateBufferTmpDir(string const & pathfor)
 {
-       static int count = 0;
+       static int count;
        static string const tmpdir(pathfor.empty() ? os::getTmpDir() : pathfor);
        // We are in our own directory.  Why bother to mangle name?
        // In fact I wrote this code to circumvent a problematic behaviour (bug?)
        // of EMX mkstemp().
-       string tmpfl = tmpdir + "/lyx_tmpbuf" + tostr(count++);
+       string const tmpfl = tmpdir + "/lyx_tmpbuf" + tostr(count++);
        if (lyx::mkdir(tmpfl, 0777)) {
                WriteFSAlert(_("Error! Couldn't create temporary directory:"),
                             tmpdir);
@@ -558,7 +558,6 @@ string const MakeAbsPath(string const & RelPath, string const & BasePath)
 
        // Copies given paths
        string TempRel(os::slashify_path(RelPath));
-       lyxerr << "TempRel=" << TempRel <<endl;
        // Since TempRel is NOT absolute, we can safely replace "//" with "/"
        TempRel = subst(TempRel, "//", "/");