summaryrefslogtreecommitdiff
path: root/ninja/src/state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ninja/src/state.cc')
-rw-r--r--ninja/src/state.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ninja/src/state.cc b/ninja/src/state.cc
index 9b6160bc2ca..33f8423312a 100644
--- a/ninja/src/state.cc
+++ b/ninja/src/state.cc
@@ -118,9 +118,9 @@ Node* State::GetNode(StringPiece path) {
return node;
}
-Node* State::LookupNode(StringPiece path) {
+Node* State::LookupNode(StringPiece path) const {
METRIC_RECORD("lookup node");
- Paths::iterator i = paths_.find(path);
+ Paths::const_iterator i = paths_.find(path);
if (i != paths_.end())
return i->second;
return NULL;