From 03f04681f55485bc6f99a04d637762a6bb1493ce Mon Sep 17 00:00:00 2001 From: AlessioBugetti Date: Wed, 28 Aug 2024 15:10:04 +0200 Subject: [PATCH] core: Declare empty constructor as = default in attribute-helper.h --- src/core/model/attribute-helper.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/model/attribute-helper.h b/src/core/model/attribute-helper.h index 6f98305eb..765573c2b 100644 --- a/src/core/model/attribute-helper.h +++ b/src/core/model/attribute-helper.h @@ -204,7 +204,7 @@ MakeSimpleAttributeChecker(std::string name, std::string underlying) class name##Value : public AttributeValue \ { \ public: \ - name##Value(); \ + name##Value() = default; \ name##Value(const type& value); \ void Set(const type& value); \ type Get() const; \ @@ -292,10 +292,6 @@ MakeSimpleAttributeChecker(std::string name, std::string underlying) * Typically invoked in the source file */ #define ATTRIBUTE_VALUE_IMPLEMENT_WITH_NAME(type, name) \ - name##Value::name##Value() \ - : m_value() \ - { \ - } \ name##Value::name##Value(const type& value) \ : m_value(value) \ { \