#8250 Use variadic macros and remove obsolete parameters

This commit is contained in:
Magne Sjaastad
2021-11-14 14:15:12 +01:00
parent 1b869a9356
commit 2a65636ba3
392 changed files with 2275 additions and 2533 deletions

View File

@@ -55,14 +55,14 @@ RimCommandObject::~RimCommandObject()
//--------------------------------------------------------------------------------------------------
RimCommandExecuteScript::RimCommandExecuteScript()
{
CAF_PDM_InitFieldNoDefault( &name, "Name", "Name", "", "", "" );
CAF_PDM_InitFieldNoDefault( &name, "Name", "Name" );
CAF_PDM_InitField( &scriptText, "ScriptText", QString(), "Script Text", "", "", "" );
CAF_PDM_InitField( &scriptText, "ScriptText", QString(), "Script Text" );
scriptText.uiCapability()->setUiEditorTypeName( caf::PdmUiTextEditor::uiEditorTypeName() );
CAF_PDM_InitField( &isEnabled, "IsEnabled", true, "Enabled ", "", "", "" );
CAF_PDM_InitField( &isEnabled, "IsEnabled", true, "Enabled " );
CAF_PDM_InitField( &execute, "Execute", true, "Execute", "", "", "" );
CAF_PDM_InitField( &execute, "Execute", true, "Execute" );
execute.xmlCapability()->disableIO();
execute.uiCapability()->setUiEditorTypeName( caf::PdmUiPushButtonEditor::uiEditorTypeName() );
execute.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
@@ -193,11 +193,11 @@ void RimCommandFactory::createCommandObjects( const caf::PdmObjectGroup& se
//--------------------------------------------------------------------------------------------------
RimCommandIssueFieldChanged::RimCommandIssueFieldChanged()
{
CAF_PDM_InitFieldNoDefault( &commandName, "CommandName", "CommandName", "", "", "" );
CAF_PDM_InitFieldNoDefault( &commandName, "CommandName", "CommandName" );
CAF_PDM_InitField( &objectName, "ObjectName", QString(), "ObjectName", "", "", "" );
CAF_PDM_InitField( &fieldName, "FieldName", QString(), "FieldName", "", "", "" );
CAF_PDM_InitField( &fieldValueToApply, "FieldValueToApply", QString(), "FieldValueToApply", "", "", "" );
CAF_PDM_InitField( &objectName, "ObjectName", QString(), "ObjectName" );
CAF_PDM_InitField( &fieldName, "FieldName", QString(), "FieldName" );
CAF_PDM_InitField( &fieldValueToApply, "FieldValueToApply", QString(), "FieldValueToApply" );
}
//--------------------------------------------------------------------------------------------------