summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-10-22 21:52:55 +0300
committerKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-11-21 00:40:11 +0300
commit95b2f8aa8e0b140ba6d90126733e7c357df92059 (patch)
tree6f833276ffe3b2ce3acddbd7870c4fcde244a519
parent2cb0370e9ac15151941b451ff5fd5a440527209a (diff)
downloadninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.tar.gz
build.cc: constify a map in BuildStatus
Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
-rw-r--r--src/build.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h
index 322291f..f8d877b 100644
--- a/src/build.h
+++ b/src/build.h
@@ -271,7 +271,7 @@ struct BuildStatus {
int started_edges_, finished_edges_, total_edges_;
/// Map of running edge to time the edge started running.
- typedef map<Edge*, int> RunningEdgeMap;
+ typedef map<const Edge*, int> RunningEdgeMap;
RunningEdgeMap running_edges_;
/// Prints progress output.