diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-16 00:21:57 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 17:17:13 +0200 |
commit | 677f2277745a621d3f47bf3debe6dc8ca610ef12 (patch) | |
tree | 72211e267ab172f6d0baad7d7675a0fbce9af359 /Userland | |
parent | b9c53a096aef46cc87ae7a06106f17ac1864a3e3 (diff) | |
download | serenity-677f2277745a621d3f47bf3debe6dc8ca610ef12.zip |
LibX86: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.h | 4 |
1 files 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; |