summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-01-07 00:15:23 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-01-07 00:15:23 (GMT)
commit8e20867e1de55489d47ec65552a2f561126c070b (patch)
tree87adf94aeeafbd338b1d24a70d5ce01c1cfc122a /src/state.cc
parentd571e79baaf58032e291325043d7870eb13cb70b (diff)
downloadNinja-8e20867e1de55489d47ec65552a2f561126c070b.zip
Ninja-8e20867e1de55489d47ec65552a2f561126c070b.tar.gz
Ninja-8e20867e1de55489d47ec65552a2f561126c070b.tar.bz2
Make BuildLogUser reference constant.
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 9b6160b..33f8423 100644
--- a/src/state.cc
+++ b/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;