mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
LibWeb: Use "= default" to declare empty constructors and descructors
A types which have special functions declared with "= default can be trivially copied. Besides being good practice, the compiler might be able generate copy and initialize code in a more optimized way. Found By PVS-Studio: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
027cbe6b89
commit
6781d60e3a
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ public:
|
|||
, m_handler(move(handler))
|
||||
{
|
||||
}
|
||||
~RequestAnimationFrameCallback() { }
|
||||
~RequestAnimationFrameCallback() = default;
|
||||
|
||||
i32 id() const { return m_id; }
|
||||
bool is_cancelled() const { return !m_handler; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue