diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-12-07 22:42:12 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-07 22:42:12 (GMT) |
commit | 3d473e737c1140a55bd804b45df998be20a758cc (patch) | |
tree | ef13343cb7f1079f1b7b9403576c40d6f80c6859 | |
parent | 8933f2f6a49f623da845c42f7dc48b36d18fbc87 (diff) | |
download | Ninja-3d473e737c1140a55bd804b45df998be20a758cc.zip Ninja-3d473e737c1140a55bd804b45df998be20a758cc.tar.gz Ninja-3d473e737c1140a55bd804b45df998be20a758cc.tar.bz2 |
remove two unneeded `explicit`s
-rw-r--r-- | src/graph.cc | 2 | ||||
-rw-r--r-- | src/state.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.cc b/src/graph.cc index 2829669..af7a22d 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -217,7 +217,7 @@ bool Edge::AllInputsReady() const { struct EdgeEnv : public Env { enum EscapeKind { kShellEscape, kDoNotEscape }; - explicit EdgeEnv(Edge* edge, EscapeKind escape) + EdgeEnv(Edge* edge, EscapeKind escape) : edge_(edge), escape_in_out_(escape) {} virtual string LookupVariable(const string& var); diff --git a/src/state.h b/src/state.h index 8804532..311d740 100644 --- a/src/state.h +++ b/src/state.h @@ -37,8 +37,8 @@ struct Rule; /// the total scheduled weight diminishes enough (i.e. when a scheduled edge /// completes). struct Pool { - explicit Pool(const string& name, int depth) - : name_(name), current_use_(0), depth_(depth), delayed_(&WeightedEdgeCmp) { } + Pool(const string& name, int depth) + : name_(name), current_use_(0), depth_(depth), delayed_(&WeightedEdgeCmp) {} // A depth of 0 is infinite bool is_valid() const { return depth_ >= 0; } |