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

Add some const qualifiers to BlockFile methods

This commit is contained in:
Paul Licameli
2016-04-10 19:49:28 -04:00
parent 7a1b4eb149
commit f94b3b3afa
23 changed files with 112 additions and 110 deletions

View File

@@ -35,7 +35,7 @@ UndoManager
#include "UndoManager.h"
WX_DECLARE_HASH_SET(BlockFile *, wxPointerHash, wxPointerEqual, Set );
WX_DECLARE_HASH_SET(const BlockFile *, wxPointerHash, wxPointerEqual, Set );
struct UndoStackElem {
@@ -98,9 +98,9 @@ void UndoManager::CalculateSpaceUsage()
{
// Scan all blockfiles within current clip
BlockArray *blocks = it->GetData()->GetSequenceBlockArray();
for (size_t b = 0, cnt = blocks->size(); b < cnt; b++)
for (const auto &block : *blocks)
{
BlockFile *file = (*blocks)[b].f;
BlockFile *file = block.f;
// Accumulate space used by the file if the file didn't exist
// in the previous level