mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03: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
Notes:
sideshowbarker
2024-07-19 01:58:46 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/44d44232298 Pull-request: https://github.com/SerenityOS/serenity/pull/3715
@ -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…
Reference in New Issue
Block a user