]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: update class fde and _fde_disk to C++11
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Feb 2017 11:16:36 +0000 (00:16 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Feb 2017 11:16:36 +0000 (00:16 +1300)
commita7d40d52ae86020fec3e5bbecad448b9ade51f65
tree411b87551529cd5faf9ef25f71592f7e7622eb2a
parentc86f80900daf0fda98058337b9c0cf9acc766af6
Cleanup: update class fde and _fde_disk to C++11

This update moves the initialization of most class members into default
initizliation values. So clear() can be optimized to a fast emplace
initialization by the compiler and removing the need for memset().

NP: implicit initialization of function pointers and char* arrays is not
supported by C++11. So use of default constructor is still required for now.

Also,
- replace internal uses of fd_table macro with fde::Table.
- replace use of NULL with nullptr
- update some method declaratiosn to current coding style
- improve inline ability for noteUse() method
- const correctness for several inline methods
- documentation updates
src/fde.cc
src/fde.h