clang-format: Set column width to 140

* Set column width to 140
* Use c++20
* Remove redundant virtual
This commit is contained in:
Magne Sjaastad
2023-02-26 10:48:40 +01:00
committed by GitHub
parent 8768e186d8
commit f8c5cf389f
1535 changed files with 10456 additions and 19398 deletions
@@ -49,8 +49,7 @@ bool RicDeleteItemFeature::isCommandEnabled()
if ( !currentPdmObject->isDeletable() ) return false;
caf::PdmChildArrayFieldHandle* childArrayFieldHandle =
dynamic_cast<caf::PdmChildArrayFieldHandle*>( currentPdmObject->parentField() );
caf::PdmChildArrayFieldHandle* childArrayFieldHandle = dynamic_cast<caf::PdmChildArrayFieldHandle*>( currentPdmObject->parentField() );
if ( !childArrayFieldHandle ) return false;
}
@@ -73,8 +72,7 @@ void RicDeleteItemFeature::onActionTriggered( bool isChecked )
if ( !currentPdmObject->isDeletable() ) continue;
caf::PdmChildArrayFieldHandle* childArrayFieldHandle =
dynamic_cast<caf::PdmChildArrayFieldHandle*>( currentPdmObject->parentField() );
caf::PdmChildArrayFieldHandle* childArrayFieldHandle = dynamic_cast<caf::PdmChildArrayFieldHandle*>( currentPdmObject->parentField() );
if ( !childArrayFieldHandle ) continue;
int indexAfter = -1;
@@ -97,8 +95,8 @@ void RicDeleteItemFeature::onActionTriggered( bool isChecked )
RicDeleteItemExecData& data = executeCmd->commandData();
data.m_rootObject = caf::PdmReferenceHelper::findRoot( childArrayFieldHandle );
data.m_pathToField = caf::PdmReferenceHelper::referenceFromRootToField( data.m_rootObject, childArrayFieldHandle );
data.m_indexToObject = indexAfter;
data.m_pathToField = caf::PdmReferenceHelper::referenceFromRootToField( data.m_rootObject, childArrayFieldHandle );
data.m_indexToObject = indexAfter;
{
QString desc;