mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7814909d3b
commit
3ad3ad7135
@ -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>();
|
||||
}
|
||||
|
@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user