diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 21:47:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-26 11:33:06 +0100 |
commit | 779d659d990b584bf22498a3beb4bf2832b7a6f0 (patch) | |
tree | 0acc4190d633089e0a089188ce5423c49fab949e /chart2/source/view | |
parent | 5fdf99ab0d09a5701db9f06299918ea76983bd92 (diff) |
cid#1500452 Using a moved object
and
cid#1500429 Using a moved object
Change-Id: Iecd989345cc043149ff1a2e24da4f6070c014c6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130568
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source/view')
-rw-r--r-- | chart2/source/view/charttypes/Splines.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx index bd54b266345a..c1acc4a4600c 100644 --- a/chart2/source/view/charttypes/Splines.cxx +++ b/chart2/source/view/charttypes/Splines.cxx @@ -121,7 +121,7 @@ lcl_SplineCalculation::lcl_SplineCalculation( m_fYp1( fY1FirstDerivation ), m_fYpN( fYnFirstDerivation ), m_nKLow( 0 ), - m_nKHigh( rSortedPoints.size() - 1 ), + m_nKHigh( m_aPoints.size() - 1 ), m_fLastInterpolatedValue(std::numeric_limits<double>::infinity()) { Calculate(); @@ -133,7 +133,7 @@ lcl_SplineCalculation::lcl_SplineCalculation( m_fYp1( 0.0 ), /*dummy*/ m_fYpN( 0.0 ), /*dummy*/ m_nKLow( 0 ), - m_nKHigh( rSortedPoints.size() - 1 ), + m_nKHigh( m_aPoints.size() - 1 ), m_fLastInterpolatedValue(std::numeric_limits<double>::infinity()) { CalculatePeriodic(); |