Kaydet (Commit) c2518d1f authored tarafından Thomas Arnhold's avatar Thomas Arnhold

cppcheck: variableScope

Change-Id: I36c0d491bc27ff93c13b1c497e450646d7151df4
üst 66e4c16f
...@@ -724,8 +724,6 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor ) ...@@ -724,8 +724,6 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
long nY; long nY;
long nRotX; long nRotX;
long nRotY; long nRotY;
long nSinY;
long nCosY;
boost::scoped_array<long> pCosX(new long[ nNewWidth ]); boost::scoped_array<long> pCosX(new long[ nNewWidth ]);
boost::scoped_array<long> pSinX(new long[ nNewWidth ]); boost::scoped_array<long> pSinX(new long[ nNewWidth ]);
boost::scoped_array<long> pCosY(new long[ nNewHeight ]); boost::scoped_array<long> pCosY(new long[ nNewHeight ]);
...@@ -749,8 +747,8 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor ) ...@@ -749,8 +747,8 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
for( nY = 0L; nY < nNewHeight; nY++ ) for( nY = 0L; nY < nNewHeight; nY++ )
{ {
nSinY = pSinY[ nY ]; long nSinY = pSinY[ nY ];
nCosY = pCosY[ nY ]; long nCosY = pCosY[ nY ];
for( nX = 0L; nX < nNewWidth; nX++ ) for( nX = 0L; nX < nNewWidth; nX++ )
{ {
...@@ -869,13 +867,12 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst, ...@@ -869,13 +867,12 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst,
{ {
const long nSrcCount = pDstAcc->GetPaletteEntryCount(); const long nSrcCount = pDstAcc->GetPaletteEntryCount();
const long nDstCount = 1 << nDstBitCount; const long nDstCount = 1 << nDstBitCount;
bool bFound;
for( long i = 0L; ( i < nSrcCount ) && ( nNextIndex < nSrcCount ); i++ ) for( long i = 0L; ( i < nSrcCount ) && ( nNextIndex < nSrcCount ); i++ )
{ {
const BitmapColor& rSrcCol = pSrcAcc->GetPaletteColor( (sal_uInt16) i ); const BitmapColor& rSrcCol = pSrcAcc->GetPaletteColor( (sal_uInt16) i );
bFound = false; bool bFound = false;
for( long j = 0L; j < nDstCount; j++ ) for( long j = 0L; j < nDstCount; j++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment