mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-10 00:15:31 +01:00
Eliminate a data member of ProjectFileIO...
... use a local variable of export file paths instead, for duration of full save; not needed at all for auto-saves
This commit is contained in:
@@ -75,8 +75,9 @@ public:
|
||||
void SetLoadedFromAup( bool value ) { mbLoadedFromAup = value; }
|
||||
|
||||
private:
|
||||
// Push names of NEW export files onto the path list
|
||||
bool SaveCopyWaveTracks(const FilePath & strProjectPathName,
|
||||
bool bLossless = false);
|
||||
bool bLossless, FilePaths &strOtherNamesArray);
|
||||
bool DoSave(bool fromSaveAs, bool bWantSaveCopy, bool bLossless = false);
|
||||
|
||||
void UpdatePrefs() override;
|
||||
@@ -85,16 +86,18 @@ private:
|
||||
bool HandleXMLTag(const wxChar *tag, const wxChar **attrs) override;
|
||||
XMLTagHandler *HandleXMLChild(const wxChar *tag) override;
|
||||
void WriteXMLHeader(XMLWriter &xmlFile) const;
|
||||
|
||||
// If the second argument is not null, that means we are saving a
|
||||
// compressed project, and the wave tracks have been exported into the
|
||||
// named files
|
||||
void WriteXML(
|
||||
XMLWriter &xmlFile, bool bWantSaveCopy) /* not override */;
|
||||
XMLWriter &xmlFile, FilePaths *strOtherNamesArray) /* not override */;
|
||||
|
||||
// non-staic data members
|
||||
AudacityProject &mProject;
|
||||
|
||||
std::shared_ptr<TrackList> mLastSavedTracks;
|
||||
|
||||
FilePaths mStrOtherNamesArray; // used to make sure compressed file names are unique
|
||||
|
||||
// Last auto-save file name and path (empty if none)
|
||||
FilePath mAutoSaveFileName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user