summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-09 20:54:31 (GMT)
committerEvan Martin <martine@danga.com>2012-01-09 21:03:21 (GMT)
commitbef0bbfb3e6b0fcb71f13fea07fe14d628fb6492 (patch)
tree7e4c23bf797415787601104a66f34c6e413ae8f7 /src/state.cc
parent926aa27a85bc7b1996fbebd651014bab078bfda5 (diff)
downloadNinja-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.cc4
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;