From 44d442322984336244d8b74df5e3f777ae6e89cc Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Wed, 7 Oct 2020 18:04:00 -0400 Subject: [PATCH] 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. --- Kernel/Net/TCP.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Net/TCP.h b/Kernel/Net/TCP.h index b53e869174..e54159b72b 100644 --- a/Kernel/Net/TCP.h +++ b/Kernel/Net/TCP.h @@ -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); }