summaryrefslogtreecommitdiff
path: root/sc/source/core/data/colorscale.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-22 13:12:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-22 20:54:46 +0200
commit66e32324f6441818612f088cfa5c8082c8ceea32 (patch)
tree9117ab96f16b30ca8b5f098afd71c0b1ba6d2beb /sc/source/core/data/colorscale.cxx
parentb622db74f0dcb32cb1d64f1ad1a365bd45106443 (diff)
loplugin:constparam in sc part1
Change-Id: I82fba7ebb3b4f018721642c96bbfa615c6a382c3 Reviewed-on: https://gerrit.libreoffice.org/41419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/colorscale.cxx')
-rw-r--r--sc/source/core/data/colorscale.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 54edf124e9cd..a5b56bd114d4 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -36,7 +36,7 @@ ScFormulaListener::ScFormulaListener(ScDocument* pDoc):
{
}
-void ScFormulaListener::startListening(ScTokenArray* pArr, const ScRange& rRange)
+void ScFormulaListener::startListening(const ScTokenArray* pArr, const ScRange& rRange)
{
if (!pArr || mpDoc->IsClipOrUndo())
return;
@@ -88,7 +88,7 @@ void ScFormulaListener::startListening(ScTokenArray* pArr, const ScRange& rRange
}
}
-void ScFormulaListener::addTokenArray(ScTokenArray* pArray, const ScRange& rRange)
+void ScFormulaListener::addTokenArray(const ScTokenArray* pArray, const ScRange& rRange)
{
startListening(pArray, rRange);
}
@@ -231,7 +231,7 @@ void ScColorScaleEntry::SetValue(double nValue)
mpCell.reset();
}
-void ScColorScaleEntry::UpdateReference( sc::RefUpdateContext& rCxt )
+void ScColorScaleEntry::UpdateReference( const sc::RefUpdateContext& rCxt )
{
if (!mpCell)
return;
@@ -499,7 +499,7 @@ double GetPercentile( const std::vector<double>& rArray, double fPercentile )
}
-double ScColorScaleFormat::CalcValue(double nMin, double nMax, ScColorScaleEntries::const_iterator& itr) const
+double ScColorScaleFormat::CalcValue(double nMin, double nMax, const ScColorScaleEntries::const_iterator& itr) const
{
switch((*itr)->GetType())
{
@@ -1109,7 +1109,7 @@ double ScIconSetFormat::GetMaxValue() const
}
}
-double ScIconSetFormat::CalcValue(double nMin, double nMax, ScIconSetFormat::const_iterator& itr) const
+double ScIconSetFormat::CalcValue(double nMin, double nMax, const ScIconSetFormat::const_iterator& itr) const
{
switch ((*itr)->GetType())
{