From b2043f7fe4087b2cdf2265167897e6947d241001 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2020 06:04:52 +0000 Subject: [PATCH] Fixes by clang-format --- .../cafPdmUiCore/cafIconProvider.cpp | 16 ++++++++-------- .../cafHexGridIntersectionTools.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafIconProvider.cpp b/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafIconProvider.cpp index b917dfec4f..b9d959b104 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafIconProvider.cpp +++ b/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafIconProvider.cpp @@ -172,10 +172,10 @@ std::unique_ptr IconProvider::icon( const QSize& size ) const // Draw color gradient based on background colors - QLinearGradient gradient (QPointF(0.0f, 0.0f), QPoint(size.width(), 0.0f)); - for (size_t i = 0; i < m_backgroundColorStrings.size(); ++i) - { - if (!QColor::isValidColor(m_backgroundColorStrings[i])) + QLinearGradient gradient( QPointF( 0.0f, 0.0f ), QPoint( size.width(), 0.0f ) ); + for ( size_t i = 0; i < m_backgroundColorStrings.size(); ++i ) + { + if ( !QColor::isValidColor( m_backgroundColorStrings[i] ) ) { validIcon = false; break; @@ -191,10 +191,10 @@ std::unique_ptr IconProvider::icon( const QSize& size ) const // Draw border - QPainter painter2(&pixmap); - painter2.setRenderHint(QPainter::Antialiasing); - painter2.setPen(QPen(Qt::black, 1)); - painter2.drawRect(QRectF(0, 0, size.width(), size.height())); + QPainter painter2( &pixmap ); + painter2.setRenderHint( QPainter::Antialiasing ); + painter2.setPen( QPen( Qt::black, 1 ) ); + painter2.drawRect( QRectF( 0, 0, size.width(), size.height() ) ); } else pixmap.fill( Qt::transparent ); diff --git a/Fwk/AppFwk/cafVizExtensions/cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp b/Fwk/AppFwk/cafVizExtensions/cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp index 60fe7c871b..6f14c58b74 100644 --- a/Fwk/AppFwk/cafVizExtensions/cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp +++ b/Fwk/AppFwk/cafVizExtensions/cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp @@ -1277,7 +1277,7 @@ are stacked together to a chain, the mesh of each cube must be rotated by an ang The tessellation makes sure opposite faces are divided along the same line See figure http://www.ics.uci.edu/~eppstein/projects/tetra/ - + 4, 5, 6, 0 0, 1, 5, 6 0, 2, 1, 6