From 38e7f933c86b66010f65d821155eccd9e8a4135e Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 28 Apr 2019 00:28:41 +0300 Subject: tdf#120703 PVS: V581 ifs with identical conditions V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Change-Id: I11fa13677c7980e6ac17fc4358406472ee784e41 Reviewed-on: https://gerrit.libreoffice.org/71446 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- chart2/source/view/charttypes/Splines.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'chart2') diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx index 3527d1bec01f..e41a2ba6bcd7 100644 --- a/chart2/source/view/charttypes/Splines.cxx +++ b/chart2/source/view/charttypes/Splines.cxx @@ -850,9 +850,8 @@ void SplineCalculater::CalculateBSplines( --r; } } - } // aPointsIn contains the control points now. - if (bIsSuccessful) - { + // aPointsIn contains the control points now. + // calculate the intermediate points according given resolution // using deBoor-Cox algorithm lcl_tSizeType nNewSize = nResolution * n + 1; -- cgit