diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-15 23:20:31 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 17:17:13 +0200 |
commit | c192c303d22a0b4ad698f5ad032527e3f86fbbbf (patch) | |
tree | 69df9fd871c4e56e0ed0d51ccb98490510267533 /AK/DistinctNumeric.h | |
parent | 9fe43041f562d3ee8bfb46063071201158325738 (diff) | |
download | serenity-c192c303d22a0b4ad698f5ad032527e3f86fbbbf.zip |
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/
Diffstat (limited to 'AK/DistinctNumeric.h')
-rw-r--r-- | AK/DistinctNumeric.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/AK/DistinctNumeric.h b/AK/DistinctNumeric.h index f6c2c67dbe..8a5321143a 100644 --- a/AK/DistinctNumeric.h +++ b/AK/DistinctNumeric.h @@ -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 } |