1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 11:42:17 +01:00

One less indirection accessing SeqBlock

This commit is contained in:
Paul Licameli
2016-01-29 11:12:56 -05:00
parent f684bdb973
commit 38ba19183d
10 changed files with 432 additions and 407 deletions

View File

@@ -80,9 +80,9 @@ void UndoManager::CalculateSpaceUsage()
{
// Scan all blockfiles within current clip
BlockArray *blocks = it->GetData()->GetSequenceBlockArray();
for (size_t b = 0, cnt = blocks->GetCount(); b < cnt; b++)
for (size_t b = 0, cnt = blocks->size(); b < cnt; b++)
{
BlockFile *file = blocks->Item(b)->f;
BlockFile *file = blocks->at(b).f;
// Accumulate space used by the file if the file didn't exist
// in the previous level