diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2011-12-09 09:45:05 (GMT) |
---|---|---|
committer | Nicolas Despres <nicolas.despres@gmail.com> | 2011-12-09 09:45:05 (GMT) |
commit | 2e5720bfe92c59217dfc5b5aa9608a4c7d96fcd3 (patch) | |
tree | d7a3f2d809b502d0774729ee60ce998fa4a9e7b5 /src/state.cc | |
parent | b922101633f3ec5973b7c7de0956bbef09522e4f (diff) | |
download | Ninja-2e5720bfe92c59217dfc5b5aa9608a4c7d96fcd3.zip Ninja-2e5720bfe92c59217dfc5b5aa9608a4c7d96fcd3.tar.gz Ninja-2e5720bfe92c59217dfc5b5aa9608a4c7d96fcd3.tar.bz2 |
Use getter instead of private member.
Fix a compilation error.
Diffstat (limited to 'src/state.cc')
-rw-r--r-- | src/state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cc b/src/state.cc index 06adf8b..79e2551 100644 --- a/src/state.cc +++ b/src/state.cc @@ -28,7 +28,7 @@ State::State() : build_log_(NULL) { } void State::AddRule(const Rule* rule) { - assert(LookupRule(rule->name_) == NULL); + assert(LookupRule(rule->name()) == NULL); rules_[rule->name()] = rule; } |