mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +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
|
@ -50,11 +50,11 @@ void VideoBackend::PopulateList()
|
|||
#endif
|
||||
g_available_video_backends.push_back(backends[3] = new SW::VideoSoftware);
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
for (auto& backend : backends)
|
||||
{
|
||||
if (backends[i])
|
||||
if (backend)
|
||||
{
|
||||
s_default_backend = g_video_backend = backends[i];
|
||||
s_default_backend = g_video_backend = backend;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue