]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: Migrate Http1:: Parser child classes to C++11 initialization
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 15 Mar 2017 15:41:41 +0000 (04:41 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 15 Mar 2017 15:41:41 +0000 (04:41 +1300)
commit7a010fb2cfde06b657628ec17b6fdd962d6445cc
tree0b358d6b5634b53b79295edefcfc3b6b6eedc68a
parent33de409eb3e7cecd56cdee81fbb918e3090d52ef
Cleanup: Migrate Http1:: Parser child classes to C++11 initialization

Also, add move semantics to Http1::RequestParser. This apparently will
make the clear() operators faster as they no longer have to data-copy.
At least, one the base Parser class supports move as well.

It also consists a small experiment to see if virtaul destructor alone
allows automatic move constructor to be added by the compiler.
src/http/one/Parser.h
src/http/one/RequestParser.cc
src/http/one/RequestParser.h
src/http/one/ResponseParser.h