]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / bufferlist.C
index 66d930aabd082ff5b950de129af6e5b4d0e30d38..2e86971f4d6be3ad7d6727130197e131a967e504 100644 (file)
@@ -40,7 +40,6 @@ namespace lyx {
 using support::addName;
 using support::bformat;
 using support::FileName;
-using support::makeAbsPath;
 using support::makeDisplayPath;
 using support::onlyFilename;
 using support::removeAutosaveFile;
@@ -160,7 +159,7 @@ bool BufferList::quitWriteAll()
                // if master/slave are both open, do not save slave since it
                // will be automatically loaded when the master is loaded
                if ((*it)->getMasterBuffer() == (*it))
-                       LyX::ref().session().lastOpened().add((*it)->fileName());
+                       LyX::ref().session().lastOpened().add(FileName((*it)->fileName()));
        }
 
        return true;
@@ -316,10 +315,8 @@ 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();
-                       (*it)->makeLaTeXFile(writefile, mastertmpdir,
+                       string writefile = addName(mastertmpdir, (*it)->getLatexName());
+                       (*it)->makeLaTeXFile(FileName(writefile), mastertmpdir,
                                             runparams, false);
                        (*it)->markDepClean(mastertmpdir);
                }
@@ -435,7 +432,7 @@ Buffer * BufferList::getBufferFromTmp(string const & s)
 }
 
 
-void BufferList::setCurrentAuthor(string const & name, string const & email)
+void BufferList::setCurrentAuthor(docstring const & name, docstring const & email)
 {
        BufferStorage::iterator it = bstore.begin();
        BufferStorage::iterator end = bstore.end();