More range-based loops and overrides

This commit is contained in:
Tillmann Karras
2014-03-11 06:55:00 +01:00
parent 3fc9ca0789
commit 2fcaca0603
18 changed files with 110 additions and 127 deletions

View File

@ -24,11 +24,10 @@ InputPlugin *GetPlugin()
void Shutdown()
{
std::vector<ControllerEmu*>::const_iterator
i = g_plugin.controllers.begin(),
e = g_plugin.controllers.end();
for ( ; i!=e; ++i )
delete *i;
for (const ControllerEmu* i : g_plugin.controllers)
{
delete i;
}
g_plugin.controllers.clear();
WiimoteReal::Stop();