summaryrefslogtreecommitdiffstats
path: root/src/stat_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat_cache.cc')
-rw-r--r--src/stat_cache.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stat_cache.cc b/src/stat_cache.cc
index 487afd1..75248be 100644
--- a/src/stat_cache.cc
+++ b/src/stat_cache.cc
@@ -19,12 +19,11 @@
#include "graph.h"
FileStat* StatCache::GetFile(const std::string& path) {
- Key key(path.c_str());
- Paths::iterator i = paths_.find(key);
+ Paths::iterator i = paths_.find(path.c_str());
if (i != paths_.end())
return i->second;
FileStat* file = new FileStat(path);
- paths_[Key(file->path_.c_str())] = file;
+ paths_[file->path_.c_str()] = file;
return file;
}