mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
LibWeb: 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
14eb736e22
commit
2b57018196
6 changed files with 5 additions and 9 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
const Element* next_element_in_pre_order() const { return const_cast<NonDocumentTypeChildNode*>(this)->next_element_in_pre_order(); }
|
||||
|
||||
protected:
|
||||
NonDocumentTypeChildNode() { }
|
||||
NonDocumentTypeChildNode() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
NonElementParentNode() { }
|
||||
NonElementParentNode() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue