Skip to content

Commit 32f1119

Browse files
committed
Strict C++
1 parent 8c400bc commit 32f1119

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ struct XdsLocalityInfo {
3737

3838
// This comparator only compares the locality names.
3939
struct Less {
40-
bool operator()(const XdsLocalityInfo& lhs, const XdsLocalityInfo& rhs) {
40+
bool operator()(const XdsLocalityInfo& lhs,
41+
const XdsLocalityInfo& rhs) const {
4142
return XdsLocalityName::Less()(lhs.locality_name, rhs.locality_name);
4243
}
4344
};

src/core/ext/filters/client_channel/resolving_lb_policy.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ class ResolvingLoadBalancingPolicy::ResolvingControlHelper
160160
}
161161
}
162162

163+
void AddTraceEvent(TraceSeverity severity, const char* message) override {}
164+
163165
void set_child(LoadBalancingPolicy* child) { child_ = child; }
164166

165167
private:

src/core/lib/channel/channelz.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ class BaseNode : public RefCounted<BaseNode> {
8181
kSocket,
8282
};
8383

84+
protected:
8485
BaseNode(EntityType type, UniquePtr<char> name);
86+
87+
public:
8588
virtual ~BaseNode();
8689

8790
// All children must implement this function.

0 commit comments

Comments
 (0)