Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.

This commit is contained in:
comex 2013-10-29 01:09:01 -04:00
commit 965b32be9c
90 changed files with 688 additions and 739 deletions

View file

@ -917,8 +917,8 @@ wxString FifoPlayerDlg::CreateRecordingMemSizeLabel() const
for (int frameNum = 0; frameNum < file->GetFrameCount(); ++frameNum)
{
const vector<MemoryUpdate>& memUpdates = file->GetFrame(frameNum).memoryUpdates;
for (unsigned int i = 0; i < memUpdates.size(); ++i)
memBytes += memUpdates[i].size;
for (auto& memUpdate : memUpdates)
memBytes += memUpdate.size;
}
return CreateIntegerLabel(memBytes, _("Memory Byte"));