diff options
author | Konstantin Kharlamov <Hi-Angel@users.noreply.github.com> | 2019-09-19 21:08:27 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2019-09-19 21:08:27 (GMT) |
commit | 8ed4bb844908de8bf2623bd6739da463fe83ef0b (patch) | |
tree | d03ca7f34bb2164e92ba86c3cab154482f9883d8 /src/graph.h | |
parent | 61f90e918b608413daf07ffcb5c5c0930416951a (diff) | |
download | Ninja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.zip Ninja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.tar.gz Ninja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.tar.bz2 |
Small constifications (#1647)
* build: constify EdgeWanted()
* build: constify a bit of CommandRunner
* graph: constify functions of struct Edge
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.h b/src/graph.h index 6122837..19b25c4 100644 --- a/src/graph.h +++ b/src/graph.h @@ -159,12 +159,12 @@ struct Edge { /// Returns the shell-escaped value of |key|. std::string GetBinding(const string& key) const; - bool GetBindingBool(const string& key); + bool GetBindingBool(const string& key) const; /// Like GetBinding("depfile"), but without shell escaping. - string GetUnescapedDepfile(); + string GetUnescapedDepfile() const; /// Like GetBinding("dyndep"), but without shell escaping. - string GetUnescapedDyndep(); + string GetUnescapedDyndep() const; /// Like GetBinding("rspfile"), but without shell escaping. std::string GetUnescapedRspfile() const; |