From 6fb4ed63f3073c2114aeacf1e8398c7374b55d72 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Tue, 10 Aug 2010 23:28:57 +0000 Subject: [PATCH] Introduce a pointer var to replace 3 double derefs with one. --- src/UndoManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UndoManager.cpp b/src/UndoManager.cpp index b2f1c5612..7e84912a9 100644 --- a/src/UndoManager.cpp +++ b/src/UndoManager.cpp @@ -66,8 +66,9 @@ wxLongLong UndoManager::CalculateSpaceUsage(int index) blocks = it->GetData()->GetSequenceBlockArray(); for (i = 0; i < blocks->GetCount(); i++) { - if (blocks->Item(i)->f->GetFileName().FileExists()) - cur[blocks->Item(i)->f] = blocks->Item(i)->f->GetSpaceUsage(); + BlockFile* pBlockFile = blocks->Item(i)->f; + if (pBlockFile->GetFileName().FileExists()) + cur[pBlockFile] = pBlockFile->GetSpaceUsage(); } } wt = (WaveTrack *) iter.Next();