Fix the TODO in graph.h.
authorThiago Farina <tfarina@chromium.org>
Sun, 12 Feb 2012 18:25:38 +0000 (16:25 -0200)
committerThiago Farina <tfarina@chromium.org>
Thu, 16 Feb 2012 11:05:14 +0000 (09:05 -0200)
Signed-off-by: Thiago Farina <tfarina@chromium.org>
src/graph.h
src/state_test.cc

index 6ba82b9..c83d790 100644 (file)
@@ -109,8 +109,7 @@ struct Rule {
   const EvalString& description() const { return description_; }
   const EvalString& depfile() const { return depfile_; }
 
-  // TODO: private:
-
+ private:
   // Allow the parsers to reach into this object and fill out its fields.
   friend struct ManifestParser;
 
index e9d8174..354468b 100644 (file)
@@ -23,10 +23,10 @@ TEST(State, Basic) {
   State state;
 
   Rule* rule = new Rule("cat");
-  rule->command_.AddText("cat ");
-  rule->command_.AddSpecial("in");
-  rule->command_.AddText(" > ");
-  rule->command_.AddSpecial("out");
+  rule->command().AddText("cat ");
+  rule->command().AddSpecial("in");
+  rule->command().AddText(" > ");
+  rule->command().AddSpecial("out");
   state.AddRule(rule);
 
   Edge* edge = state.AddEdge(rule);