FifoDataFile: Convert MemoryUpdate data member to std::vector

This commit is contained in:
Lioncash
2016-06-28 21:38:33 -04:00
parent 8943d23a4c
commit 437b1294bb
5 changed files with 12 additions and 18 deletions

View File

@ -946,8 +946,8 @@ wxString FifoPlayerDlg::CreateRecordingMemSizeLabel() const
for (size_t frameNum = 0; frameNum < file->GetFrameCount(); ++frameNum)
{
const std::vector<MemoryUpdate>& memUpdates = file->GetFrame(frameNum).memoryUpdates;
for (auto& memUpdate : memUpdates)
memBytes += memUpdate.size;
for (const auto& memUpdate : memUpdates)
memBytes += memUpdate.data.size();
}
return wxString::Format(_("%zu memory bytes"), memBytes);