summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.cc2
-rw-r--r--src/nodedumper.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc
index a7a7630..f9c68d5 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -97,8 +97,6 @@ void AbstractNode::progress_report() const
std::ostream &operator<<(std::ostream &stream, const AbstractNode &node)
{
- // FIXME: Don't use deep access to modinst members
- if (node.modinst->isBackground()) stream << "%";
stream << node.toString();
return stream;
}
diff --git a/src/nodedumper.cc b/src/nodedumper.cc
index 4523bac..d2905c0 100644
--- a/src/nodedumper.cc
+++ b/src/nodedumper.cc
@@ -1,5 +1,6 @@
#include "nodedumper.h"
#include "state.h"
+#include "module.h"
#include <string>
#include <sstream>
@@ -47,6 +48,7 @@ std::string NodeDumper::dumpChildren(const AbstractNode &node)
iter != this->visitedchildren[node.index()].end();
iter++) {
assert(isCached(**iter));
+ if ((*iter)->modinst->isBackground()) dump << "%";
dump << this->cache[**iter] << "\n";
}
contact: Jan Huwald // Impressum