diff options
Diffstat (limited to 'project2/if.cpp')
-rw-r--r-- | project2/if.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/project2/if.cpp b/project2/if.cpp index 4531b89..fe47059 100644 --- a/project2/if.cpp +++ b/project2/if.cpp @@ -1,6 +1,7 @@ #include "if.h" #include "logger.h" #include "xmlObjectLoader.h" +#include <boost/foreach.hpp> DECLARE_LOADER("if", If); @@ -54,7 +55,7 @@ If::execute(const Presenter * presenter) const { if (passes()) { Logger()->messagef(LOG_DEBUG, "IfSet passed, showing %zu views", subViews.size()); - BOOST_FOREACH(const Views::value_type & sq, subViews) { + BOOST_FOREACH(const SubViews::value_type & sq, subViews) { sq->execute(presenter); } } @@ -65,7 +66,7 @@ If::execute() const { if (passes()) { Logger()->message(LOG_DEBUG, "IfSet passed"); - BOOST_FOREACH(const NoOutputExecutes::value_type & sq, subNOEs.get<bySOOrder>()) { + BOOST_FOREACH(const SubNOEs::value_type & sq, subNOEs.get<bySOOrder>()) { sq->execute(); } } |