sc/source/core/inc/interpre.hxx | 2 +- sc/source/core/tool/interpr3.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 811b28aca2e46491081f6cb60e6a26f411c375ec Author: Eike Rathke <er...@redhat.com> AuthorDate: Sat Mar 4 23:00:36 2023 +0100 Commit: Eike Rathke <er...@redhat.com> CommitDate: Sat Mar 4 23:29:46 2023 +0000 Rename to GetRankNumberArray() because that is what it does Change-Id: Iee170972769ea8366a7dfa3edd098a9342a2268f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148260 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 853d76751732..5897a6b6c757 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -930,7 +930,7 @@ private: void ScMedian(); double GetMedian( ::std::vector<double> & rArray ); double GetPercentileExclusive( ::std::vector<double> & rArray, double fPercentile ); - std::vector<double> GetTopNumberArray( SCSIZE& rCol, SCSIZE& rRow ); + std::vector<double> GetRankNumberArray( SCSIZE& rCol, SCSIZE& rRow ); void GetNumberSequenceArray( sal_uInt8 nParamCount, ::std::vector<double>& rArray, bool bConvertTextInArray ); void GetSortArray( sal_uInt8 nParamCount, ::std::vector<double>& rSortArray, ::std::vector<tools::Long>* pIndexOrder, bool bConvertTextInArray, bool bAllowEmptyArray ); static void QuickSort(::std::vector<double>& rSortArray, ::std::vector<tools::Long>* pIndexOrder); diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index 25fdf94e7f78..578ff4584eb3 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -3638,7 +3638,7 @@ void ScInterpreter::CalculateSmallLarge(bool bSmall) return; SCSIZE nCol = 0, nRow = 0; - const auto aArray = GetTopNumberArray(nCol, nRow); + const auto aArray = GetRankNumberArray(nCol, nRow); const size_t nRankArraySize = aArray.size(); if (nRankArraySize == 0 || nGlobalError != FormulaError::NONE) { @@ -3855,7 +3855,7 @@ void ScInterpreter::ScTrimMean() } } -std::vector<double> ScInterpreter::GetTopNumberArray( SCSIZE& rCol, SCSIZE& rRow ) +std::vector<double> ScInterpreter::GetRankNumberArray( SCSIZE& rCol, SCSIZE& rRow ) { std::vector<double> aArray; switch (GetStackType())