TCP: Remove unnecessarily defined constructor and destructor

Problem: Defining the destructor violates the "rule of 0" and prevents
the copy/move constructor/assignment operators from being provided by
the compiler.

Solution: Change the constructor and destructor to be the default
compiler-provided definition.
This commit is contained in:
Lenny Maiorani 2020-10-07 18:04:00 -04:00 committed by Andreas Kling
parent 9d27644b7d
commit 44d4423229
Notes: sideshowbarker 2024-07-19 01:58:46 +09:00

View File

@ -44,8 +44,8 @@ struct TCPFlags {
class [[gnu::packed]] TCPPacket
{
public:
TCPPacket() { }
~TCPPacket() { }
TCPPacket() = default;
~TCPPacket() = default;
size_t header_size() const { return data_offset() * sizeof(u32); }