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
1 changed files with 1 additions and 3 deletions
|
@ -285,9 +285,7 @@ void PluginManager::loadPlugins() {
|
||||||
pp != _providers.end();
|
pp != _providers.end();
|
||||||
++pp) {
|
++pp) {
|
||||||
PluginList pl((*pp)->getPlugins());
|
PluginList pl((*pp)->getPlugins());
|
||||||
for (PluginList::iterator plugin = pl.begin(); plugin != pl.end(); ++plugin) {
|
Common::for_each(pl.begin(), pl.end(), Common::bind1st(Common::mem_fun(&PluginManager::tryLoadPlugin), this));
|
||||||
tryLoadPlugin(*plugin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue