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:
@@ -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() )
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user