summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-10-22 21:43:13 +0300
committerKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-11-21 00:40:11 +0300
commit2cb0370e9ac15151941b451ff5fd5a440527209a (patch)
treee337ef8f19993dacf6b00c747671b1c78fe9b911
parent2492fcbd912c8aa8f9e4e2258d9aa1e6f683a992 (diff)
downloadninja-2cb0370e9ac15151941b451ff5fd5a440527209a.tar.gz
graph.cc: constify DependencyScan
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
-rw-r--r--src/graph.cc4
-rw-r--r--src/graph.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 3214513..e24a954 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -222,8 +222,8 @@ bool DependencyScan::RecomputeOutputsDirty(Edge* edge, Node* most_recent_input,
return true;
}
-bool DependencyScan::RecomputeOutputDirty(Edge* edge,
- Node* most_recent_input,
+bool DependencyScan::RecomputeOutputDirty(const Edge* edge,
+ const Node* most_recent_input,
const string& command,
Node* output) {
if (edge->is_phony()) {
diff --git a/src/graph.h b/src/graph.h
index 19b25c4..2fa54af 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -310,7 +310,7 @@ struct DependencyScan {
/// Recompute whether a given single output should be marked dirty.
/// Returns true if so.
- bool RecomputeOutputDirty(Edge* edge, Node* most_recent_input,
+ bool RecomputeOutputDirty(const Edge* edge, const Node* most_recent_input,
const string& command, Node* output);
BuildLog* build_log_;