diff --git a/src/Core/Resource/CResource.h b/src/Core/Resource/CResource.h index 0b037490..c5908ef2 100644 --- a/src/Core/Resource/CResource.h +++ b/src/Core/Resource/CResource.h @@ -16,7 +16,7 @@ // Must be included on every CResource subclass. #define DECLARE_RESOURCE_TYPE(ResourceTypeEnum) \ public: \ - static EResourceType StaticType() \ + static constexpr EResourceType StaticType() \ { \ return EResourceType::ResourceTypeEnum; \ } \ diff --git a/src/Core/Resource/Script/Property/CStructProperty.h b/src/Core/Resource/Script/Property/CStructProperty.h index 18824860..de323180 100644 --- a/src/Core/Resource/Script/Property/CStructProperty.h +++ b/src/Core/Resource/Script/Property/CStructProperty.h @@ -32,7 +32,7 @@ public: void InitFromArchetype(IProperty* pOther) override; bool ShouldSerialize() const override; - static EPropertyType StaticType() { return EPropertyType::Struct; } + static constexpr EPropertyType StaticType() { return EPropertyType::Struct; } }; #endif diff --git a/src/Core/Resource/Script/Property/IProperty.h b/src/Core/Resource/Script/Property/IProperty.h index 5b66584c..53e979ea 100644 --- a/src/Core/Resource/Script/Property/IProperty.h +++ b/src/Core/Resource/Script/Property/IProperty.h @@ -361,7 +361,7 @@ public: mDefaultValue = kInDefaultValue; } - static EPropertyType StaticType() { return PropEnum; } + static constexpr EPropertyType StaticType() { return PropEnum; } }; template