mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibGUI: 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
4fe99ff0d6
commit
a7364eef3c
4 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ namespace GUI {
|
|||
|
||||
class Margins {
|
||||
public:
|
||||
Margins() { }
|
||||
Margins() = default;
|
||||
Margins(int all)
|
||||
: m_top(all)
|
||||
, m_right(all)
|
||||
|
@ -39,7 +39,7 @@ public:
|
|||
, m_left(left)
|
||||
{
|
||||
}
|
||||
~Margins() { }
|
||||
~Margins() = default;
|
||||
|
||||
bool is_null() const { return !m_left && !m_top && !m_right && !m_bottom; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue