mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 04:01:23 +00:00
Replaced a loop in PluginManger::loadPlugins with Common::for_each as a typical usage example.
svn-id: r32286
This commit is contained in:
parent
e92fccfdd9
commit
a6d591b947
@ -285,9 +285,7 @@ void PluginManager::loadPlugins() {
|
||||
pp != _providers.end();
|
||||
++pp) {
|
||||
PluginList pl((*pp)->getPlugins());
|
||||
for (PluginList::iterator plugin = pl.begin(); plugin != pl.end(); ++plugin) {
|
||||
tryLoadPlugin(*plugin);
|
||||
}
|
||||
Common::for_each(pl.begin(), pl.end(), Common::bind1st(Common::mem_fun(&PluginManager::tryLoadPlugin), this));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user