#5101 clang-format: Adjusted penalties

Use lower absolute values to improve control of behavior
This commit is contained in:
Magne Sjaastad
2020-02-12 11:43:15 +01:00
parent 10f0abc9b5
commit c82df63e10
710 changed files with 3167 additions and 4721 deletions

View File

@@ -52,8 +52,8 @@ bool RicPasteIntersectionsFeature::isCommandEnabled()
return false;
}
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(
caf::SelectionManager::instance()->selectedItem() );
caf::PdmObjectHandle* destinationObject =
dynamic_cast<caf::PdmObjectHandle*>( caf::SelectionManager::instance()->selectedItem() );
if ( findIntersectionCollection( destinationObject ) )
{
@@ -68,11 +68,11 @@ bool RicPasteIntersectionsFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicPasteIntersectionsFeature::onActionTriggered( bool isChecked )
{
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(
caf::SelectionManager::instance()->selectedItem() );
caf::PdmObjectHandle* destinationObject =
dynamic_cast<caf::PdmObjectHandle*>( caf::SelectionManager::instance()->selectedItem() );
RimIntersectionCollection* intersectionCollection = RicPasteIntersectionsFeature::findIntersectionCollection(
destinationObject );
RimIntersectionCollection* intersectionCollection =
RicPasteIntersectionsFeature::findIntersectionCollection( destinationObject );
CAF_ASSERT( intersectionCollection );
@@ -108,8 +108,7 @@ void RicPasteIntersectionsFeature::onActionTriggered( bool isChecked )
for ( size_t i = 0; i < intersectionBoxObjects.size(); i++ )
{
RimBoxIntersection* intersectionBox = dynamic_cast<RimBoxIntersection*>(
intersectionBoxObjects[i]->xmlCapability()->copyByXmlSerialization(
caf::PdmDefaultObjectFactory::instance() ) );
intersectionBoxObjects[i]->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
QString nameOfCopy = QString( "Copy of " ) + intersectionBox->name();
intersectionBox->setName( nameOfCopy );