Skip to content

Commit 9b4880c

Browse files
committed
fix lints'
1 parent 67974d0 commit 9b4880c

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

libs/common/include/events/detail/summarizer.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Summarizer {
2929
/**
3030
* Construct a Summarizer at time zero.
3131
*/
32-
Summarizer();
32+
Summarizer() = default;
3333

3434
/**
3535
* Updates the summary with a feature event.
@@ -71,10 +71,10 @@ class Summarizer {
7171
}
7272

7373
struct Hash {
74-
auto operator()(VariationKey const& p) const -> size_t {
74+
auto operator()(VariationKey const& key) const -> size_t {
7575
std::size_t seed = 0;
76-
boost::hash_combine(seed, p.version);
77-
boost::hash_combine(seed, p.variation);
76+
boost::hash_combine(seed, key.version);
77+
boost::hash_combine(seed, key.variation);
7878
return seed;
7979
}
8080
};

libs/common/src/events/asio_event_processor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ AsioEventProcessor::AsioEventProcessor(
3030
path_(config.path()),
3131
authorization_(std::move(authorization)),
3232
uuids_(),
33-
conns_(),
3433
inbox_capacity_(config.capacity()),
3534
inbox_size_(0),
36-
inbox_mutex_(),
3735
full_outbox_encountered_(false),
3836
full_inbox_encountered_(false),
3937
filter_(config.all_attributes_private(), config.private_attributes()),

libs/common/src/events/summarizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
namespace launchdarkly::events::detail {
44

55
Summarizer::Summarizer(std::chrono::system_clock::time_point start)
6-
: start_time_(start), features_() {}
7-
8-
Summarizer::Summarizer() : start_time_(), features_() {}
6+
: start_time_(start) {}
97

108
bool Summarizer::Empty() const {
119
return features_.empty();

0 commit comments

Comments
 (0)