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:
parent
b9c53a096a
commit
677f227774
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue