From: Amos Jeffries <> Date: Mon, 3 Apr 2017 09:31:50 +0000 (+1200) Subject: Cleanup: convert ByteCounter to C++11 initialization X-Git-Tag: M-staged-PR71~204 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e82a6c73f3839c7ae5f7fafe730c7264f3b7d52;p=thirdparty%2Fsquid.git Cleanup: convert ByteCounter to C++11 initialization --- diff --git a/src/base/ByteCounter.h b/src/base/ByteCounter.h index b68e132bbb..dfe100ebdc 100644 --- a/src/base/ByteCounter.h +++ b/src/base/ByteCounter.h @@ -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 */