summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:43:29 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:46:19 (GMT)
commit2863acbe2a3ab11c0a6d5efa93c0491cac63d72a (patch)
tree47f16ec855905ca14a88615a38223508fc0e6ddc /src/state.cc
parent63d136fb891f365b551621220ce3dd1022c14182 (diff)
downloadNinja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.zip
Ninja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.tar.gz
Ninja-2863acbe2a3ab11c0a6d5efa93c0491cac63d72a.tar.bz2
make Rule::name_ private
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cc b/src/state.cc
index 00192b0..06adf8b 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -29,7 +29,7 @@ State::State() : build_log_(NULL) {
void State::AddRule(const Rule* rule) {
assert(LookupRule(rule->name_) == NULL);
- rules_[rule->name_] = rule;
+ rules_[rule->name()] = rule;
}
const Rule* State::LookupRule(const string& rule_name) {