summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Iannucci <robbie@rail.com>2012-11-09 23:47:06 (GMT)
committerRobert A Iannucci Jr <iannucci@chromium.org>2012-11-09 23:47:06 (GMT)
commitbd0ad99e7549386a8bb51e8f445312fe5c7a6679 (patch)
tree80124b10ccd76311f0ce30f3850bca754a4b638e /src
parenta5bf183fd9ae7745effbce5dee1e76432c865d5a (diff)
downloadNinja-bd0ad99e7549386a8bb51e8f445312fe5c7a6679.zip
Ninja-bd0ad99e7549386a8bb51e8f445312fe5c7a6679.tar.gz
Ninja-bd0ad99e7549386a8bb51e8f445312fe5c7a6679.tar.bz2
all building and tests passing
Diffstat (limited to 'src')
-rw-r--r--src/manifest_parser.cc2
-rw-r--r--src/state_test.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/manifest_parser.cc b/src/manifest_parser.cc
index 8a010dd..d2c7f1c 100644
--- a/src/manifest_parser.cc
+++ b/src/manifest_parser.cc
@@ -266,7 +266,7 @@ bool ManifestParser::ParseEdge(string* err) {
} while (lexer_.PeekToken(Lexer::INDENT));
}
- Edge* edge = state_->AddEdge(rule, NULL);
+ Edge* edge = state_->AddEdge(rule, &State::kDefaultPool);
edge->env_ = env;
for (vector<EvalString>::iterator i = ins.begin(); i != ins.end(); ++i) {
string path = i->Evaluate(env);
diff --git a/src/state_test.cc b/src/state_test.cc
index bc24edd..26177ff 100644
--- a/src/state_test.cc
+++ b/src/state_test.cc
@@ -32,7 +32,7 @@ TEST(State, Basic) {
rule->set_command(command);
state.AddRule(rule);
- Edge* edge = state.AddEdge(rule);
+ Edge* edge = state.AddEdge(rule, &State::kDefaultPool);
state.AddIn(edge, "in1");
state.AddIn(edge, "in2");
state.AddOut(edge, "out");