]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Apply formatting, as 'already formatted to perfection' is relative
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 11 Dec 2020 08:26:25 +0000 (09:26 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jan 2021 09:25:41 +0000 (10:25 +0100)
pdns/recursordist/negcache.hh
pdns/recursordist/rec-protozero.hh
pdns/recursordist/stable-bloom.hh

index 2b0fa35c67a234ac08dac4e1f772567fd71194dc..b051d4399233bc930e0a1b8f6c37c0d770c62ca1 100644 (file)
@@ -116,7 +116,7 @@ private:
     std::atomic<uint64_t> d_entriesCount{0};
     mutable uint64_t d_contended_count{0};
     mutable uint64_t d_acquired_count{0};
-    void invalidate() { }
+    void invalidate() {}
   };
 
   vector<MapCombo> d_maps;
index 7fa67a22be7dfc93cb130a5a53c65aec1230fc63..bbb2abeb8a8f87e911f50054aa5983633824e0ed 100644 (file)
@@ -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);
index 32ca2835d85cf7b7001f1ea93f5b3f68c0b9e11b..e15723589acb0a17a2fa3fde048aabee36c43326 100644 (file)
@@ -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();