summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:38:10 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:38:10 (GMT)
commitd58d918bafb26af9fd0c65cd61058ad29c5d2f4b (patch)
tree163351351c3f4cad33cb3331e0ffc1721e8b8491 /src/state.cc
parent48526b9c08f22ddcf7e36ca02fde0202312920fa (diff)
downloadNinja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.zip
Ninja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.tar.gz
Ninja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.tar.bz2
make Node::out_edges_ private
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cc b/src/state.cc
index 930c361..00192b0 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -83,7 +83,7 @@ Node* State::SpellcheckNode(const string& path) {
void State::AddIn(Edge* edge, const string& path) {
Node* node = GetNode(path);
edge->inputs_.push_back(node);
- node->out_edges_.push_back(edge);
+ node->AddOutEdge(edge);
}
void State::AddOut(Edge* edge, const string& path) {
@@ -112,7 +112,7 @@ vector<Node*> State::RootNodes(string* err) {
for (vector<Edge*>::iterator e = edges_.begin(); e != edges_.end(); ++e) {
for (vector<Node*>::iterator out = (*e)->outputs_.begin();
out != (*e)->outputs_.end(); ++out) {
- if ((*out)->out_edges_.empty())
+ if ((*out)->out_edges().empty())
root_nodes.push_back(*out);
}
}