From c192c303d22a0b4ad698f5ad032527e3f86fbbbf Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Wed, 15 Sep 2021 23:20:31 -0700 Subject: 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/ --- AK/DistinctNumeric.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'AK/DistinctNumeric.h') 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; public: - constexpr DistinctNumeric() - { - } + constexpr DistinctNumeric() = default; constexpr DistinctNumeric(T value) : m_value { value } -- cgit v1.2.3