From 12b1d1cda3332a09476f703629fef372c2b06b2a Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Mon, 12 Aug 2013 09:16:31 +0900 Subject: Mark as const Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502 --- lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 2 +- lotuswordpro/source/filter/lwppttntbl.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx index 2b9da1c04347..8de00f3ecda1 100644 --- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx +++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx @@ -87,7 +87,7 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra if (pPttnArray) { assert((2 < btPttnIndex) && (btPttnIndex < 72)); - sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex]; + const sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex]; for(sal_uInt8 i = 0; i < 32; i++) { pPttnArray[i] = (i%4 == 0) ? pTempArray[7-i/4] : 0; diff --git a/lotuswordpro/source/filter/lwppttntbl.hxx b/lotuswordpro/source/filter/lwppttntbl.hxx index a2399ac06278..c1dff5af2b9f 100644 --- a/lotuswordpro/source/filter/lwppttntbl.hxx +++ b/lotuswordpro/source/filter/lwppttntbl.hxx @@ -62,7 +62,7 @@ #ifndef _LTPATTERNTABLE_HXX #define _LTPATTERNTABLE_HXX -static sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name +static const sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name { 0xDF, 0xAF, 0x77, 0x77, 0x77, 0x77, 0xFA, 0xFD },//0 Transparent { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },//1 SolidForeground { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },//2 SolidBackground -- cgit