diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:08:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:08:44 +0100 |
commit | 0c1a37e60393504b38990d1f0a95239bf6749766 (patch) | |
tree | aebfe560d9f4aa816c43856195e6b1b424931b4a /filter | |
parent | Fix duplicate conditions (diff) | |
download | core-0c1a37e60393504b38990d1f0a95239bf6749766.tar.gz core-0c1a37e60393504b38990d1f0a95239bf6749766.zip |
Some cppcheck cleaning
Change-Id: I74ff9d8d116ebfe9ebc302c79a3763eda9c1250f
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/itiff/ccidecom.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/itiff/ccidecom.cxx b/filter/source/graphicfilter/itiff/ccidecom.cxx index 601b7579ac12..09ae6c233f69 100644 --- a/filter/source/graphicfilter/itiff/ccidecom.cxx +++ b/filter/source/graphicfilter/itiff/ccidecom.cxx @@ -569,6 +569,7 @@ CCIDecompressor::CCIDecompressor( sal_uLong nOpts, sal_uInt32 nImageWidth ) : bTableBad ( sal_False ), bStatus ( sal_False ), pByteSwap ( NULL ), + pIStream ( NULL ), nWidth ( nImageWidth ), nOptions ( nOpts ), pLastLine ( NULL ) @@ -623,7 +624,7 @@ void CCIDecompressor::StartDecompression( SvStream & rIStream ) sal_Bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTargetBits ) { sal_uInt16 i; - sal_uInt8 * pSrc,* pDst; + sal_uInt8 * pDst; sal_Bool b2D; if ( nEOLCount >= 5 ) // RTC (Return To Controller) @@ -700,7 +701,7 @@ sal_Bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTa // if we're in 2D mode we have to remember the line: if ( nOptions & CCI_OPTION_2D && bStatus == sal_True ) { - pSrc = pTarget; + sal_uInt8 *pSrc = pTarget; pDst = pLastLine; for ( i = 0; i < nLastLineSize; i++ ) *(pDst++)=*(pSrc++); } |