mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user