diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2019-10-22 19:19:17 (GMT) |
---|---|---|
committer | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2019-11-20 21:40:11 (GMT) |
commit | 1d4c65f2fd9f3b66f64838bb11e663aed95dcc1f (patch) | |
tree | 52dad237a8f9cdc3982df0291c19d0b4d0881b13 /src/build.cc | |
parent | 95b2f8aa8e0b140ba6d90126733e7c357df92059 (diff) | |
download | Ninja-1d4c65f2fd9f3b66f64838bb11e663aed95dcc1f.zip Ninja-1d4c65f2fd9f3b66f64838bb11e663aed95dcc1f.tar.gz Ninja-1d4c65f2fd9f3b66f64838bb11e663aed95dcc1f.tar.bz2 |
build.cc: constify BuildStatus
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc index 771ec85..75671a6 100644 --- a/src/build.cc +++ b/src/build.cc @@ -96,7 +96,7 @@ void BuildStatus::PlanHasTotalEdges(int total) { total_edges_ = total; } -void BuildStatus::BuildEdgeStarted(Edge* edge) { +void BuildStatus::BuildEdgeStarted(const Edge* edge) { assert(running_edges_.find(edge) == running_edges_.end()); int start_time = (int)(GetTimeMillis() - start_time_millis_); running_edges_.insert(make_pair(edge, start_time)); @@ -290,7 +290,7 @@ string BuildStatus::FormatProgressStatus( return out; } -void BuildStatus::PrintStatus(Edge* edge, EdgeStatus status) { +void BuildStatus::PrintStatus(const Edge* edge, EdgeStatus status) { if (config_.verbosity == BuildConfig::QUIET) return; |