diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2016-06-09 16:14:22 (GMT) |
---|---|---|
committer | Nicolas Despres <nicolas.despres@gmail.com> | 2016-06-09 16:14:22 (GMT) |
commit | 87ae5be1895899e71103160b43b903fb8b31f132 (patch) | |
tree | 9c02c733c2a53fb2f983be5d5458153985182f77 /src/state.h | |
parent | 8d65002fd5e6f2102447ab15f636cc84db3384ec (diff) | |
download | Ninja-87ae5be1895899e71103160b43b903fb8b31f132.zip Ninja-87ae5be1895899e71103160b43b903fb8b31f132.tar.gz Ninja-87ae5be1895899e71103160b43b903fb8b31f132.tar.bz2 |
Constify State::RootNodes().
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.h b/src/state.h index d7987ba..b530207 100644 --- a/src/state.h +++ b/src/state.h @@ -110,8 +110,8 @@ struct State { /// @return the root node(s) of the graph. (Root nodes have no output edges). /// @param error where to write the error message if somethings went wrong. - vector<Node*> RootNodes(string* error); - vector<Node*> DefaultNodes(string* error); + vector<Node*> RootNodes(string* error) const; + vector<Node*> DefaultNodes(string* error) const; /// Mapping of path -> Node. typedef ExternalStringHashMap<Node*>::Type Paths; |