From: Francesco Chemolli Date: Fri, 10 Jan 2014 15:50:03 +0000 (+0100) Subject: Document and enforce invariant on Format::Token.divisor X-Git-Tag: SQUID_3_5_0_1~423 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c05e483b12409543d0d40f738133cce1a79e0c9;p=thirdparty%2Fsquid.git Document and enforce invariant on Format::Token.divisor --- diff --git a/src/format/Token.h b/src/format/Token.h index 052cf80b41..f8b3c62264 100644 --- a/src/format/Token.h +++ b/src/format/Token.h @@ -35,7 +35,7 @@ public: left(false), space(false), zero(false), - divisor(0), + divisor(1), next(NULL) { data.string = NULL; } @@ -68,7 +68,7 @@ public: bool left; bool space; bool zero; - int divisor; + int divisor; // class invariant: MUST NOT be zero. Token *next; /* todo: move from linked list to array */ private: