summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibX86
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-16 00:21:57 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-16 17:17:13 +0200
commit677f2277745a621d3f47bf3debe6dc8ca610ef12 (patch)
tree72211e267ab172f6d0baad7d7675a0fbce9af359 /Userland/Libraries/LibX86
parentb9c53a096aef46cc87ae7a06106f17ac1864a3e3 (diff)
downloadserenity-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/Libraries/LibX86')
-rw-r--r--Userland/Libraries/LibX86/Instruction.h4
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;