mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
Use type alias for pointer to BlockFile, which is still a dumb pointer
This commit is contained in:
@@ -100,17 +100,17 @@ void UndoManager::CalculateSpaceUsage()
|
||||
BlockArray *blocks = clip->GetSequenceBlockArray();
|
||||
for (const auto &block : *blocks)
|
||||
{
|
||||
BlockFile *file = block.f;
|
||||
const auto &file = block.f;
|
||||
|
||||
// Accumulate space used by the file if the file didn't exist
|
||||
// in the previous level
|
||||
if (prev->count(file) == 0 && cur->count(file) == 0)
|
||||
if (prev->count( &*file ) == 0 && cur->count( &*file ) == 0)
|
||||
{
|
||||
space[i] += file->GetSpaceUsage().GetValue();
|
||||
}
|
||||
|
||||
// Add file to current set
|
||||
cur->insert(file);
|
||||
cur->insert( &*file );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user