From 3d473e737c1140a55bd804b45df998be20a758cc Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 7 Dec 2014 14:42:12 -0800 Subject: remove two unneeded `explicit`s --- src/graph.cc | 2 +- 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; } -- cgit v0.12