]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: convert ByteCounter to C++11 initialization
authorAmos Jeffries <>
Mon, 3 Apr 2017 09:31:50 +0000 (21:31 +1200)
committerAmos Jeffries <>
Mon, 3 Apr 2017 09:31:50 +0000 (21:31 +1200)
src/base/ByteCounter.h

index b68e132bbbdb3b68695ade52afaeb254fe228f58..dfe100ebdcad77936696ca9aff9de8565ff4b7a9 100644 (file)
@@ -13,8 +13,6 @@
 class ByteCounter
 {
 public:
-    ByteCounter() : bytes(0), kb(0) {}
-
     ByteCounter &operator +=(size_t v) {
         bytes += v;
         kb += (bytes >> 10);
@@ -23,8 +21,8 @@ public:
     }
 
 public:
-    size_t bytes;
-    size_t kb;
+    size_t bytes = 0;
+    size_t kb = 0;
 };
 
 #endif /* SQUID_SRC_BYTECOUNTER_H */