mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Run code through clang-modernize -loop-convert to create range-based for loops, and manually fix some stuff up.
This commit is contained in:
parent
00fe5057f1
commit
965b32be9c
90 changed files with 688 additions and 739 deletions
|
@ -43,16 +43,16 @@ static VertexLoaderMap g_VertexLoaderMap;
|
|||
void Init()
|
||||
{
|
||||
MarkAllDirty();
|
||||
for (int i = 0; i < 8; i++)
|
||||
g_VertexLoaders[i] = NULL;
|
||||
for (auto& vertexLoader : g_VertexLoaders)
|
||||
vertexLoader = NULL;
|
||||
RecomputeCachedArraybases();
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
{
|
||||
for (VertexLoaderMap::iterator iter = g_VertexLoaderMap.begin(); iter != g_VertexLoaderMap.end(); ++iter)
|
||||
for (auto& p : g_VertexLoaderMap)
|
||||
{
|
||||
delete iter->second;
|
||||
delete p.second;
|
||||
}
|
||||
g_VertexLoaderMap.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue