diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2019-10-22 18:52:55 (GMT) |
---|---|---|
committer | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2019-11-20 21:40:11 (GMT) |
commit | 95b2f8aa8e0b140ba6d90126733e7c357df92059 (patch) | |
tree | 6f833276ffe3b2ce3acddbd7870c4fcde244a519 /src/build.h | |
parent | 2cb0370e9ac15151941b451ff5fd5a440527209a (diff) | |
download | Ninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.zip Ninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.tar.gz Ninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.tar.bz2 |
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>
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 2 |
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. |