From 677f2277745a621d3f47bf3debe6dc8ca610ef12 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 16 Sep 2021 00:21:57 -0700 Subject: [PATCH] LibX86: Use default instead of an empty constructor/destructor Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/ --- Userland/Libraries/LibX86/Instruction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index e72599ddee..4cdfa4c416 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -279,7 +279,7 @@ enum MMXRegisterIndex { class LogicalAddress { public: - LogicalAddress() { } + LogicalAddress() = default; LogicalAddress(u16 selector, FlatPtr offset) : m_selector(selector) , m_offset(offset) @@ -411,7 +411,7 @@ public: LogicalAddress resolve(const CPU&, const Instruction&); private: - MemoryOrRegisterReference() { } + MemoryOrRegisterReference() = default; String to_string(const Instruction&) const; String to_string_a16() const;