sc/inc/Sparkline.hxx | 8 ++++---- sc/inc/SparklineCell.hxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 05032132786b8dfc5cfda6b782acf85cb4d39be9 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Sat Mar 19 10:39:20 2022 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Sun Apr 3 16:08:58 2022 +0200 sc: make getters const in SparklineCell and Sparkline classes Change-Id: Ia0bc1d4bd7da834da3640f34bfdb744dd2ddeba2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132471 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sc/inc/Sparkline.hxx b/sc/inc/Sparkline.hxx index 9a6109e96e79..e0fbbe125bc7 100644 --- a/sc/inc/Sparkline.hxx +++ b/sc/inc/Sparkline.hxx @@ -45,13 +45,13 @@ public: void setInputRange(ScRangeList const& rInputRange) { m_aInputRange = rInputRange; } - ScRangeList const& getInputRange() { return m_aInputRange; } + ScRangeList const& getInputRange() const { return m_aInputRange; } - std::shared_ptr<SparklineGroup> const& getSparklineGroup() { return m_pSparklineGroup; } + std::shared_ptr<SparklineGroup> const& getSparklineGroup() const { return m_pSparklineGroup; } - SCCOL getColumn() { return m_nColumn; } + SCCOL getColumn() const { return m_nColumn; } - SCROW getRow() { return m_nRow; } + SCROW getRow() const { return m_nRow; } }; /** Contains a list of all created sparklines */ diff --git a/sc/inc/SparklineCell.hxx b/sc/inc/SparklineCell.hxx index 0aca857170c9..0588646866c4 100644 --- a/sc/inc/SparklineCell.hxx +++ b/sc/inc/SparklineCell.hxx @@ -34,12 +34,12 @@ public: ScRangeList const& getInputRange() { return m_pSparkline->getInputRange(); } - std::shared_ptr<SparklineGroup> const& getSparklineGroup() + std::shared_ptr<SparklineGroup> const& getSparklineGroup() const { return m_pSparkline->getSparklineGroup(); } - std::shared_ptr<Sparkline> const& getSparkline() { return m_pSparkline; } + std::shared_ptr<Sparkline> const& getSparkline() const { return m_pSparkline; } }; } // end sc