1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02: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

@@ -867,7 +867,9 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
} // while
mBlock.push_back(wb);
mDirManager->SetLoadingTarget(&mBlock, mBlock.size() - 1);
auto index = mBlock.size() - 1;
mDirManager->SetLoadingTarget(
[this, index] () -> BlockFilePtr& { return mBlock[index].f; } );
return true;
}