mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1064 Use constexpr to verify keywords for pdmObject and pdmFields
This commit is contained in:
@@ -97,6 +97,8 @@ class PdmObjectCapability;
|
||||
|
||||
#define CAF_PDM_InitField(field, keyword, default, uiName, iconResourceName, toolTip, whatsThis) \
|
||||
{ \
|
||||
CAF_PDM_VERIFY_XML_KEYWORD(keyword) \
|
||||
\
|
||||
static bool chekingThePresenceOfHeaderAndSourceInitMacros = \
|
||||
Error_You_forgot_to_add_the_macro_CAF_PDM_XML_HEADER_INIT_and_or_CAF_PDM_XML_SOURCE_INIT_to_your_cpp_file_for_this_class(); \
|
||||
this->isInheritedFromPdmUiObject(); \
|
||||
@@ -113,6 +115,8 @@ class PdmObjectCapability;
|
||||
|
||||
#define CAF_PDM_InitFieldNoDefault(field, keyword, uiName, iconResourceName, toolTip, whatsThis) \
|
||||
{ \
|
||||
CAF_PDM_VERIFY_XML_KEYWORD(keyword) \
|
||||
\
|
||||
static bool chekingThePresenceOfHeaderAndSourceInitMacros = \
|
||||
Error_You_forgot_to_add_the_macro_CAF_PDM_XML_HEADER_INIT_and_or_CAF_PDM_XML_SOURCE_INIT_to_your_cpp_file_for_this_class(); \
|
||||
this->isInheritedFromPdmUiObject(); \
|
||||
|
||||
Reference in New Issue
Block a user