diff options
author | Thiago Farina <tfarina@chromium.org> | 2011-12-24 01:03:57 (GMT) |
---|---|---|
committer | Thiago Farina <tfarina@chromium.org> | 2011-12-24 01:03:57 (GMT) |
commit | 32bf74f0e94bbe26bd6a8befe55241f8dc1440e2 (patch) | |
tree | d64d51777b0b7da0ca718013c1d46a1611107e65 /src/ninja.cc | |
parent | e9ffd8dfbadcf9eb0963e30be3f989b7ef70d01d (diff) | |
download | Ninja-32bf74f0e94bbe26bd6a8befe55241f8dc1440e2.zip Ninja-32bf74f0e94bbe26bd6a8befe55241f8dc1440e2.tar.gz Ninja-32bf74f0e94bbe26bd6a8befe55241f8dc1440e2.tar.bz2 |
Fix the TODO in Rule class.
Move various data members to private section and provide accessors for them.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index 873bc6e..20584f9 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -364,12 +364,12 @@ int CmdTargets(State* state, int argc, char* argv[]) { int CmdRules(State* state, int argc, char* /* argv */[]) { for (map<string, const Rule*>::iterator i = state->rules_.begin(); i != state->rules_.end(); ++i) { - if (i->second->description_.unparsed_.empty()) { + if (i->second->description().unparsed_.empty()) { printf("%s\n", i->first.c_str()); } else { printf("%s: %s\n", i->first.c_str(), - i->second->description_.unparsed_.c_str()); + i->second->description().unparsed_.c_str()); } } return 0; |