diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-27 03:25:45 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-27 14:42:25 +0200 |
commit | c90f1f339330644ec34c76247b5c299a18d318b4 (patch) | |
tree | 74200ac2163f4e489d96416753dccb2a3c3ac636 /sc | |
parent | 82510829d5be4321166ae80679b43b376f41ae9e (diff) |
mark the reference as const
Change-Id: I66ee342205acb9875899af9a65da9eb9cd5ecc74
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output.cxx | 4 |
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 ); } |