diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:38:10 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:38:10 (GMT) |
commit | d58d918bafb26af9fd0c65cd61058ad29c5d2f4b (patch) | |
tree | 163351351c3f4cad33cb3331e0ffc1721e8b8491 /src/ninja.cc | |
parent | 48526b9c08f22ddcf7e36ca02fde0202312920fa (diff) | |
download | Ninja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.zip Ninja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.tar.gz Ninja-d58d918bafb26af9fd0c65cd61058ad29c5d2f4b.tar.bz2 |
make Node::out_edges_ private
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 1024401..8535d57 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -151,11 +151,11 @@ bool CollectTargetsFromArgs(State* state, int argc, char* argv[], Node* node = state->LookupNode(path); if (node) { if (first_dependent) { - if (node->out_edges_.empty()) { + if (node->out_edges().empty()) { *err = "'" + path + "' has no out edge"; return false; } - Edge* edge = node->out_edges_[0]; + Edge* edge = node->out_edges()[0]; if (edge->outputs_.empty()) { edge->Dump(); Fatal("edge has no outputs"); @@ -210,8 +210,8 @@ int CmdQuery(State* state, int argc, char* argv[]) { printf(" %s\n", (*in)->path().c_str()); } } - for (vector<Edge*>::iterator edge = node->out_edges_.begin(); - edge != node->out_edges_.end(); ++edge) { + for (vector<Edge*>::const_iterator edge = node->out_edges().begin(); + edge != node->out_edges().end(); ++edge) { printf(" output: %s\n", (*edge)->rule_->name_.c_str()); for (vector<Node*>::iterator out = (*edge)->outputs_.begin(); out != (*edge)->outputs_.end(); ++out) { |