summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
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;