summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-17 14:10:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-10-17 21:00:51 +0200
commitad09bf747794ee591c62b5ce4e369cfb039c86c5 (patch)
tree7708fa09708918fa484f8ea010f9a94e90064c64 /chart2/source
parent3a2e5c6d93aac9cee35c861cf259b46071832432 (diff)
tdf#163486: PVS: identical conditional expressions
V581: The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 507, 520. Change-Id: Ia376cad05bd4327662cd3b7adcbe43e25270da2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175084 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 063335a3e626..e9ff7c04ca24 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -514,11 +514,8 @@ void ChartTypeTemplate::createCoordinateSystems(
if( bOk )
return;
// there are coordinate systems but they do not fit. So overwrite them.
- }
- //copy as much info from former coordinate system as possible:
- if( !aCoordinateSystems.empty() )
- {
+ //copy as much info from former coordinate system as possible:
rtl::Reference< BaseCoordinateSystem > xOldCooSys( aCoordinateSystems[0] );
sal_Int32 nMaxDimensionCount = std::min( xCooSys->getDimension(), xOldCooSys->getDimension() );