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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user