From: Amos Jeffries Date: Thu, 23 Feb 2017 11:11:13 +0000 (+1300) Subject: Cleanup: convert class SBufStats to C++11 initialization X-Git-Tag: M-staged-PR71~243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=146102623fa218e0069ccc0f6b4b91eb2b71f5bd;p=thirdparty%2Fsquid.git Cleanup: convert class SBufStats to C++11 initialization ... and to Squid coding style layout. This also resolves uninitialized variable in pinger issue detected by Coverity Scan. Issue 1228696. --- diff --git a/src/sbuf/Stats.cc b/src/sbuf/Stats.cc index 63562373e4..7d20ab024a 100644 --- a/src/sbuf/Stats.cc +++ b/src/sbuf/Stats.cc @@ -13,14 +13,6 @@ #include -SBufStats::SBufStats() - : alloc(0), allocCopy(0), allocFromCString(0), - assignFast(0), clear(0), append(0), moves(0), toStream(0), setChar(0), - getChar(0), compareSlow(0), compareFast(0), copyOut(0), - rawAccess(0), nulTerminate(0), chop(0), trim(0), find(0), - caseChange(0), cowFast(0), cowSlow(0), live(0) -{} - SBufStats& SBufStats::operator +=(const SBufStats& ss) { diff --git a/src/sbuf/Stats.h b/src/sbuf/Stats.h index 00b76f0479..7c280a5883 100644 --- a/src/sbuf/Stats.h +++ b/src/sbuf/Stats.h @@ -21,34 +21,34 @@ class SBufStats { public: - uint64_t alloc; ///