diff options
Diffstat (limited to 'project2/xml/rawView.cpp')
-rw-r--r-- | project2/xml/rawView.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/project2/xml/rawView.cpp b/project2/xml/rawView.cpp index 2070a2f..151d594 100644 --- a/project2/xml/rawView.cpp +++ b/project2/xml/rawView.cpp @@ -19,12 +19,14 @@ RawView::RawView(const xmlpp::Element * p) : } void -RawView::execute(const Presenter * p) const +RawView::execute(const MultiRowSetPresenter * mp) const { - BOOST_FOREACH(xmlpp::Node * node, copyRoot->get_children()) { - const xmlpp::Element * e = dynamic_cast<const xmlpp::Element *>(node); - if (e) { - copyNode(p, e); + if (const Presenter * p = dynamic_cast<const Presenter *>(mp)) { + BOOST_FOREACH(xmlpp::Node * node, copyRoot->get_children()) { + const xmlpp::Element * e = dynamic_cast<const xmlpp::Element *>(node); + if (e) { + copyNode(p, e); + } } } } |