diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-17 14:08:29 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-17 21:00:30 +0200 |
commit | 3a2e5c6d93aac9cee35c861cf259b46071832432 (patch) | |
tree | 5ee690c643c156f72e26820038fcd7fa534c2cdd /chart2/source/model/main | |
parent | 6958a8259c8ce75fd6d2625f39e3808c9ee88608 (diff) |
tdf#163486: PVS: identical conditional expressions
V581: The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 406, 410.
V581: The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 410, 418.
Change-Id: I971f243870a96f7195d2819f2a0a44bb63840fac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175083
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'chart2/source/model/main')
-rw-r--r-- | chart2/source/model/main/ChartModel_Persistence.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx index 3c3481420069..d508c1de527b 100644 --- a/chart2/source/model/main/ChartModel_Persistence.cxx +++ b/chart2/source/model/main/ChartModel_Persistence.cxx @@ -404,19 +404,15 @@ void ChartModel::insertDefaultChart() if( bIsRTL ) xLegend->setPropertyValue( u"AnchorPosition"_ustr, uno::Any( chart2::LegendPosition_LINE_START )); if(xDiagram.is()) + { xDiagram->setLegend( xLegend ); - // set simple 3D look - if( xDiagram.is() ) - { + // set simple 3D look xDiagram->setPropertyValue( u"RightAngledAxes"_ustr, uno::Any( true )); xDiagram->setPropertyValue( u"D3DScenePerspective"_ustr, uno::Any( drawing::ProjectionMode_PARALLEL )); xDiagram->setScheme( ThreeDLookScheme::ThreeDLookScheme_Realistic ); - } - //set some new 'defaults' for wall and floor - if( xDiagram.is() ) - { + //set some new 'defaults' for wall and floor Reference< beans::XPropertySet > xWall( xDiagram->getWall() ); if( xWall.is() ) { |