mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
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:
parent
9d27644b7d
commit
44d4423229
1 changed files with 2 additions and 2 deletions
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue