aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-26 12:12:51 +0000
committerJohannes Schickel2008-05-26 12:12:51 +0000
commita6d591b947384470a85e2229c231df1eb3773ff7 (patch)
tree136a6e25ffc33b7af2374718dc9811c0e0b93510
parente92fccfdd9cfe0b9cd0d0344adbe7d75db250061 (diff)
downloadscummvm-rg350-a6d591b947384470a85e2229c231df1eb3773ff7.tar.gz
scummvm-rg350-a6d591b947384470a85e2229c231df1eb3773ff7.tar.bz2
scummvm-rg350-a6d591b947384470a85e2229c231df1eb3773ff7.zip
Replaced a loop in PluginManger::loadPlugins with Common::for_each as a typical usage example.
svn-id: r32286
-rw-r--r--base/plugins.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index 435e5bf1f1..052bca935d 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -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));
}
}