1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

static DirManager::Get()...

... not member functions of AudacityProject

This puts DirManager.cpp and four others back into the big strongly connected
component of link dependencies.  They will break out again when Project.cpp
becomes a low-level file.
This commit is contained in:
Paul Licameli
2019-01-21 18:14:57 -05:00
parent 72b7c776a8
commit 805af452a4
9 changed files with 87 additions and 41 deletions

View File

@@ -729,7 +729,7 @@ bool Exporter::CheckFilename()
// existing file.)
//
if (!mProject->GetDirManager()->EnsureSafeFilename(mFilename))
if (!DirManager::Get( *mProject ).EnsureSafeFilename(mFilename))
return false;
if( mFormatName.empty() )

View File

@@ -925,7 +925,7 @@ ProgressResult ExportMultiple::DoExport(std::unique_ptr<ProgressDialog> &pDialog
wxFileName backup;
if (mOverwrite->GetValue()) {
// Make sure we don't overwrite (corrupt) alias files
if (!mProject->GetDirManager()->EnsureSafeFilename(inName)) {
if (!DirManager::Get( *mProject ).EnsureSafeFilename(inName)) {
return ProgressResult::Cancelled;
}
name = inName;