summaryrefslogtreecommitdiff
path: root/src/match.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/match.cpp')
-rw-r--r--src/match.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/match.cpp b/src/match.cpp
index 60f2747..d6d6bd7 100644
--- a/src/match.cpp
+++ b/src/match.cpp
@@ -135,9 +135,7 @@ CompDisplay::matchExpHandlerChanged ()
{
WRAPABLE_HND_FUNC(matchExpHandlerChanged)
- CompPlugin *p;
-
- for (p = getPlugins (); p; p = p->next)
+ foreach (CompPlugin *p, CompPlugin::getPlugins ())
{
CompOption::Vector &options = p->vTable->getObjectOptions (this);
matchUpdateMatchOptions (options);
@@ -145,7 +143,7 @@ CompDisplay::matchExpHandlerChanged ()
foreach (CompScreen *s, priv->screens)
{
- for (p = getPlugins (); p; p = p->next)
+ foreach (CompPlugin *p, CompPlugin::getPlugins ())
{
CompOption::Vector &options = p->vTable->getObjectOptions (s);
matchUpdateMatchOptions (options);