1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +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 { class LogicalAddress {
public: public:
LogicalAddress() { } LogicalAddress() = default;
LogicalAddress(u16 selector, FlatPtr offset) LogicalAddress(u16 selector, FlatPtr offset)
: m_selector(selector) : m_selector(selector)
, m_offset(offset) , m_offset(offset)
@ -411,7 +411,7 @@ public:
LogicalAddress resolve(const CPU&, const Instruction&); LogicalAddress resolve(const CPU&, const Instruction&);
private: private:
MemoryOrRegisterReference() { } MemoryOrRegisterReference() = default;
String to_string(const Instruction&) const; String to_string(const Instruction&) const;
String to_string_a16() const; String to_string_a16() const;