1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

DirManager.cpp does not depend on Sequence.cpp...

... This does not yet break any dependency cycles
This commit is contained in:
Paul Licameli
2019-05-14 11:25:42 -04:00
parent 9b32fc7a2b
commit d46bb29e3a
4 changed files with 14 additions and 15 deletions

View File

@@ -340,10 +340,9 @@ bool RecordingRecoveryHandler::HandleXMLTag(const wxChar *tag,
const auto &dirManager = mProject->GetDirManager();
dirManager->SetLoadingFormat(seq->GetSampleFormat());
BlockArray array;
array.resize(1);
dirManager->SetLoadingTarget(&array, 0);
auto &blockFile = array[0].f;
BlockFilePtr blockFile;
dirManager->SetLoadingTarget(
[&]() -> BlockFilePtr& { return blockFile; } );
if (!dirManager->HandleXMLTag(tag, attrs) || !blockFile)
{