mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Introduce a pointer var to replace 3 double derefs with one.
This commit is contained in:
parent
477d499c06
commit
6fb4ed63f3
@ -66,8 +66,9 @@ wxLongLong UndoManager::CalculateSpaceUsage(int index)
|
|||||||
blocks = it->GetData()->GetSequenceBlockArray();
|
blocks = it->GetData()->GetSequenceBlockArray();
|
||||||
for (i = 0; i < blocks->GetCount(); i++)
|
for (i = 0; i < blocks->GetCount(); i++)
|
||||||
{
|
{
|
||||||
if (blocks->Item(i)->f->GetFileName().FileExists())
|
BlockFile* pBlockFile = blocks->Item(i)->f;
|
||||||
cur[blocks->Item(i)->f] = blocks->Item(i)->f->GetSpaceUsage();
|
if (pBlockFile->GetFileName().FileExists())
|
||||||
|
cur[pBlockFile] = pBlockFile->GetSpaceUsage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wt = (WaveTrack *) iter.Next();
|
wt = (WaveTrack *) iter.Next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user