1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibX86: Use default instead of an empty constructor/destructor

Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
Brian Gianforcaro 2021-09-16 00:21:57 -07:00 committed by Andreas Kling
parent b9c53a096a
commit 677f227774

View file

@ -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;