]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4671 pt4: refactor Format::assemble()
authorAmos Jeffries <>
Fri, 31 Mar 2017 13:52:56 +0000 (02:52 +1300)
committerAmos Jeffries <>
Fri, 31 Mar 2017 13:52:56 +0000 (02:52 +1300)
commitce023dfdc52029e6528b03b0878c9be159a7998f
treeb4074c27c54ff0adcfd4d8c15262374ccbf684ac
parentbd556b201622858b6f2ffa945284f02cf03769d8
Bug 4671 pt4: refactor Format::assemble()

* replace the String local with an SBuf to get appendf()

* overdue removal of empty lines and '!= NULL' conditions

* reduce scope redux for many out assignments

* use sizeof(tmp) instead of '1024'

* Fixes many GCC 7 compile errors from snprintf() being called with a
  too-small buffer.

* update the for-loops in Adaptation::History to C++11 and produce output
  in an SBuf. Removing need for iterator typedef's and resolving more GCC 7
  warnings about too-small buffers for snprintf().
src/adaptation/History.cc
src/adaptation/History.h
src/format/Format.cc