diff --git a/Sofa/framework/Core/src/sofa/core/objectmodel/BaseClass.h b/Sofa/framework/Core/src/sofa/core/objectmodel/BaseClass.h index 453e03e3044..07cf4a89232 100644 --- a/Sofa/framework/Core/src/sofa/core/objectmodel/BaseClass.h +++ b/Sofa/framework/Core/src/sofa/core/objectmodel/BaseClass.h @@ -234,6 +234,7 @@ class SOFA_CORE_API DeprecatedBaseClass : public BaseClass // Do not use this macro directly, use SOFA_ABSTRACT_CLASS instead #define SOFA_ABSTRACT_CLASS_DECL \ + using BaseObject SOFA_ATTRIBUTE_DEPRECATED("v26.06", "v29.06", "BaseObject has been renamed to BaseComponent") = sofa::core::objectmodel::BaseComponent; /*this alias allows the transition from BaseObject to BaseComponent.*/ \ typedef MyType* Ptr; \ friend class sofa::core::objectmodel::BaseClassNameHelper; \ static std::string GetDefaultTemplateName(){ return sofa::core::objectmodel::BaseClassNameHelper::DefaultTypeTemplateName::Get(); } \ @@ -247,8 +248,7 @@ class SOFA_CORE_API DeprecatedBaseClass : public BaseClass { \ return ::sofa::core::objectmodel::BaseLink::InitLink \ (this, n, help); \ -}\ - using BaseObject SOFA_ATTRIBUTE_DEPRECATED("v26.06", "v29.06", "BaseObject has been renamed to BaseComponent") = sofa::core::objectmodel::BaseComponent; // this alias allows the transition from BaseObject to BaseComponent. +} // Do not use this macro directly, use SOFA_CLASS instead #define SOFA_CLASS_DECL \