mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
AK: Use default constructor/destructor instead of declaring an empty one
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
9fe43041f5
commit
c192c303d2
Notes:
sideshowbarker
2024-07-18 03:52:35 +09:00
Author: https://github.com/bgianfo
Commit: c192c303d2
Pull-request: https://github.com/SerenityOS/serenity/pull/10053
8 changed files with 7 additions and 16 deletions
|
@ -52,9 +52,7 @@ class DistinctNumeric {
|
|||
using Self = DistinctNumeric<T, X, Incr, Cmp, Bool, Flags, Shift, Arith>;
|
||||
|
||||
public:
|
||||
constexpr DistinctNumeric()
|
||||
{
|
||||
}
|
||||
constexpr DistinctNumeric() = default;
|
||||
|
||||
constexpr DistinctNumeric(T value)
|
||||
: m_value { value }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue