]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
explain why ownsClipbiard() does not work on Windows and OS X
[lyx.git] / src / bufferlist.C
index d38fdc9cf45554ce21a5612db983fd0ea5464c76..f0c1d23f56c07f5ad8d3c7736f73a94d5097d1fa 100644 (file)
@@ -184,7 +184,7 @@ Buffer * BufferList::newBuffer(string const & s, bool const ronly)
 {
        auto_ptr<Buffer> tmpbuf(new Buffer(s, ronly));
        tmpbuf->params().useClassDefaults();
-       lyxerr[Debug::INFO] << "Assigning to buffer "
+       LYXERR(Debug::INFO) << "Assigning to buffer "
                            << bstore.size() << endl;
        bstore.push_back(tmpbuf.get());
        return tmpbuf.release();
@@ -315,9 +315,7 @@ void BufferList::updateIncludedTeXfiles(string const & mastertmpdir,
        BufferStorage::iterator end = bstore.end();
        for (; it != end; ++it) {
                if (!(*it)->isDepClean(mastertmpdir)) {
-                       string writefile = mastertmpdir;
-                       writefile += '/';
-                       writefile += (*it)->getLatexName();
+                       string writefile = addName(mastertmpdir, (*it)->getLatexName());
                        (*it)->makeLaTeXFile(FileName(writefile), mastertmpdir,
                                             runparams, false);
                        (*it)->markDepClean(mastertmpdir);