From: Remi Gacogne Date: Fri, 11 Dec 2020 08:26:25 +0000 (+0100) Subject: rec: Apply formatting, as 'already formatted to perfection' is relative X-Git-Tag: rec-4.5.0-alpha1~38^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52351e93d30764296dec87d4602fcb75f8df1254;p=thirdparty%2Fpdns.git rec: Apply formatting, as 'already formatted to perfection' is relative --- diff --git a/pdns/recursordist/negcache.hh b/pdns/recursordist/negcache.hh index 2b0fa35c67..b051d43992 100644 --- a/pdns/recursordist/negcache.hh +++ b/pdns/recursordist/negcache.hh @@ -116,7 +116,7 @@ private: std::atomic d_entriesCount{0}; mutable uint64_t d_contended_count{0}; mutable uint64_t d_acquired_count{0}; - void invalidate() { } + void invalidate() {} }; vector d_maps; diff --git a/pdns/recursordist/rec-protozero.hh b/pdns/recursordist/rec-protozero.hh index 7fa67a22be..bbb2abeb8a 100644 --- a/pdns/recursordist/rec-protozero.hh +++ b/pdns/recursordist/rec-protozero.hh @@ -53,7 +53,9 @@ namespace ProtoZero // Construct a Message with (partially) constructed content RecMessage(const std::string& buf1, const std::string& buf2, std::string::size_type sz1, std::string::size_type sz2) : - Message(d_msgbuf), d_msgbuf{buf1}, d_rspbuf{buf2} + Message(d_msgbuf), + d_msgbuf{buf1}, + d_rspbuf{buf2} { d_message = protozero::pbf_writer(d_msgbuf); d_response = protozero::pbf_writer(d_rspbuf); diff --git a/pdns/recursordist/stable-bloom.hh b/pdns/recursordist/stable-bloom.hh index 32ca2835d8..e15723589a 100644 --- a/pdns/recursordist/stable-bloom.hh +++ b/pdns/recursordist/stable-bloom.hh @@ -45,14 +45,14 @@ public: d_p(p), d_cells(num_cells), d_gen(std::random_device()()), - d_dis(0, num_cells) { } + d_dis(0, num_cells) {} stableBF(uint8_t k, uint32_t num_cells, uint8_t p, const std::string& bitstr) : d_k(k), d_num_cells(num_cells), d_p(p), d_cells(bitstr), d_gen(std::random_device()()), - d_dis(0, num_cells) { } + d_dis(0, num_cells) {} void add(const std::string& data) { decrement();