diff options
author | Evan Martin <martine@danga.com> | 2012-01-09 20:54:31 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-09 21:03:21 (GMT) |
commit | bef0bbfb3e6b0fcb71f13fea07fe14d628fb6492 (patch) | |
tree | 7e4c23bf797415787601104a66f34c6e413ae8f7 /src/state.cc | |
parent | 926aa27a85bc7b1996fbebd651014bab078bfda5 (diff) | |
download | Ninja-bef0bbfb3e6b0fcb71f13fea07fe14d628fb6492.zip Ninja-bef0bbfb3e6b0fcb71f13fea07fe14d628fb6492.tar.gz Ninja-bef0bbfb3e6b0fcb71f13fea07fe14d628fb6492.tar.bz2 |
convert ExternalStringHash to use StringPiece
Diffstat (limited to 'src/state.cc')
-rw-r--r-- | src/state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cc b/src/state.cc index 79e2551..238674e 100644 --- a/src/state.cc +++ b/src/state.cc @@ -52,12 +52,12 @@ Node* State::GetNode(const string& path) { if (node) return node; node = new Node(path); - paths_[node->path().c_str()] = node; + paths_[node->path()] = node; return node; } Node* State::LookupNode(const string& path) { - Paths::iterator i = paths_.find(path.c_str()); + Paths::iterator i = paths_.find(path); if (i != paths_.end()) return i->second; return NULL; |