summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-27 03:25:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-27 14:42:25 +0200
commitc90f1f339330644ec34c76247b5c299a18d318b4 (patch)
tree74200ac2163f4e489d96416753dccb2a3c3ac636
parent82510829d5be4321166ae80679b43b376f41ae9e (diff)
mark the reference as const
Change-Id: I66ee342205acb9875899af9a65da9eb9cd5ecc74
-rw-r--r--sc/source/ui/view/output.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index e4c722fd698a..7997abddc68e 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -873,7 +873,7 @@ void drawDataBars(vcl::RenderContext& rRenderContext, const ScDataBarInfo* pOldD
}
}
-BitmapEx& getIcon(sc::IconSetBitmapMap & rIconSetBitmapMap, ScIconSetType eType, sal_Int32 nIndex)
+const BitmapEx& getIcon(sc::IconSetBitmapMap & rIconSetBitmapMap, ScIconSetType eType, sal_Int32 nIndex)
{
return ScIconSetFormat::getBitmap(rIconSetBitmapMap, eType, nIndex);
}
@@ -884,7 +884,7 @@ void drawIconSets(vcl::RenderContext& rRenderContext, const ScIconSetInfo* pOldI
//long nSize = 16;
ScIconSetType eType = pOldIconSetInfo->eIconSetType;
sal_Int32 nIndex = pOldIconSetInfo->nIconIndex;
- BitmapEx& rIcon = getIcon(rIconSetBitmapMap, eType, nIndex);
+ const BitmapEx& rIcon = getIcon(rIconSetBitmapMap, eType, nIndex);
long aOrigSize = std::max<long>(0,std::min(rRect.GetSize().getWidth() - 4 * nOneX, rRect.GetSize().getHeight() -4 * nOneY));
rRenderContext.DrawBitmapEx( Point( rRect.Left() + 2 * nOneX, rRect.Top() + 2 * nOneY), Size(aOrigSize, aOrigSize), rIcon );
}