summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/octree.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/octree.hxx b/vcl/inc/octree.hxx
index 44a4c5e0a77f..9f670fa6bf98 100644
--- a/vcl/inc/octree.hxx
+++ b/vcl/inc/octree.hxx
@@ -59,7 +59,7 @@ private:
sal_uLong nLevel;
NODE* pTree;
NODE* pReduce[ OCTREE_BITS + 1 ];
- BitmapColor* pColor;
+ BitmapColor const * pColor;
ImpNodeCache* pNodeCache;
const BitmapReadAccess* pAcc;
sal_uInt16 nPalIndex;
@@ -83,7 +83,7 @@ inline const BitmapPalette& Octree::GetPalette()
inline sal_uInt16 Octree::GetBestPaletteIndex( const BitmapColor& rColor )
{
- pColor = &(BitmapColor&) rColor;
+ pColor = &rColor;
nPalIndex = 65535;
nLevel = 0L;
GetPalIndex( pTree );