Skip to content

Commit

Permalink
Merge pull request grpc#20055 from veblush/cpplb
Browse files Browse the repository at this point in the history
More strict C++
  • Loading branch information
veblush authored Aug 23, 2019
2 parents 2ba3ad5 + 32f1119 commit 37170cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ struct XdsLocalityInfo {

// This comparator only compares the locality names.
struct Less {
bool operator()(const XdsLocalityInfo& lhs, const XdsLocalityInfo& rhs) {
bool operator()(const XdsLocalityInfo& lhs,
const XdsLocalityInfo& rhs) const {
return XdsLocalityName::Less()(lhs.locality_name, rhs.locality_name);
}
};
Expand Down
2 changes: 2 additions & 0 deletions src/core/ext/filters/client_channel/resolving_lb_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ class ResolvingLoadBalancingPolicy::ResolvingControlHelper
}
}

void AddTraceEvent(TraceSeverity severity, const char* message) override {}

void set_child(LoadBalancingPolicy* child) { child_ = child; }

private:
Expand Down
3 changes: 3 additions & 0 deletions src/core/lib/channel/channelz.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ class BaseNode : public RefCounted<BaseNode> {
kSocket,
};

protected:
BaseNode(EntityType type, UniquePtr<char> name);

public:
virtual ~BaseNode();

// All children must implement this function.
Expand Down

0 comments on commit 37170cd

Please sign in to comment.