diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-04 18:35:23 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-04 18:35:23 (GMT) |
commit | 5417b4fa65098a41299bb2d693d646a5f4d06051 (patch) | |
tree | 16d92e93f7b26470aa9113e9602ffd4b7d378f35 /src/mainwin.cc | |
parent | 2a18b857f0dccca7d9f697f7cbcae6759610429c (diff) |
Ported use for Qt's foreach to BOOST_FOREACH
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index c112d55..170bb05 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -76,6 +76,7 @@ #endif #include <algorithm> +#include <boost/foreach.hpp> #include <boost/lambda/lambda.hpp> #include <boost/lambda/bind.hpp> using namespace boost::lambda; @@ -578,7 +579,7 @@ void MainWindow::load() AbstractNode *MainWindow::find_root_tag(AbstractNode *n) { - foreach(AbstractNode *v, n->children) { + BOOST_FOREACH (AbstractNode *v, n->children) { if (v->modinst->tag_root) return v; if (AbstractNode *vroot = find_root_tag(v)) return vroot; } |