git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-14 13:16:08 +00:00
parent 7814909d3b
commit 3ad3ad7135
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ void ExportData::addExternalFile(string const & format,
{
// Make sure that we have every file only once, otherwise copyFile()
// would ask several times if it should overwrite a file.
vector<ExportedFile> & files = externalfiles[format];
vector<ExportedFile> & files = externalfiles_[format];
ExportedFile file(sourceName, exportName);
if (find(files.begin(), files.end(), file) == files.end())
files.push_back(file);
@ -132,8 +132,8 @@ void ExportData::addExternalFile(string const & format,
vector<ExportedFile> const
ExportData::externalFiles(string const & format) const
{
FileMap::const_iterator cit = externalfiles.find(format);
if (cit != externalfiles.end())
FileMap::const_iterator cit = externalfiles_.find(format);
if (cit != externalfiles_.end())
return cit->second;
return vector<ExportedFile>();
}

View File

@ -81,13 +81,13 @@ public:
support::FileName const & sourceName);
/// get referenced files for \p format
std::vector<ExportedFile> const
externalFiles(std::string const & format) const;
externalFiles(std::string const & format) const;
private:
typedef std::map<std::string, std::vector<ExportedFile> > FileMap;
/** Files that are referenced by the export result in the
* different formats.
*/
FileMap externalfiles;
FileMap externalfiles_;
};