]> git.ipfire.org Git - thirdparty/squid.git/commit - src/tests/testNetDb.h
Cleanup: use new/delete allocation from netdbEntry class
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 19 Oct 2016 21:14:13 +0000 (10:14 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 19 Oct 2016 21:14:13 +0000 (10:14 +1300)
commit1a7cfe0289a5c24552850f23ad0a50581a7cbe22
tree5f2dbf3a12df3edd9bd7c83aa21fc1a6717cf7a6
parentcb171eaddfd37bd81c31aa3b5bc6a255ee7c6a9a
Cleanup: use new/delete allocation from netdbEntry class

Use the C++ new/delete operators provided by MEMPRXY_CLASS and
associated as-needed pool creation instead of C Alloc/Free
functions and pre-initialized pool.

Use class initializers for members to demonstrate mixed default
and explicit member initialization.

Add unit test for the new constructor logic.
src/Makefile.am
src/icmp/net_db.cc
src/icmp/net_db.h
src/ip/Address.h
src/ip/forward.h
src/mem/forward.h
src/mem/old_api.cc
src/tests/testNetDb.cc [new file with mode: 0644]
src/tests/testNetDb.h [new file with mode: 0644]