summaryrefslogtreecommitdiff
path: root/svtools/bmpmaker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-23 15:03:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-23 15:03:19 +0000
commit1a348e513fb0cc706a8df3895b6af894db6a5f7a (patch)
treee8704bda965a743b3b029b27b5d52a8be2e40983 /svtools/bmpmaker
parent8c5d3101941d4b9d1336cbbd32bf27829c62c04c (diff)
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'svtools/bmpmaker')
-rw-r--r--svtools/bmpmaker/bmpsum.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/bmpmaker/bmpsum.cxx b/svtools/bmpmaker/bmpsum.cxx
index a052cf45d75c..d23599252ffe 100644
--- a/svtools/bmpmaker/bmpsum.cxx
+++ b/svtools/bmpmaker/bmpsum.cxx
@@ -191,7 +191,6 @@ sal_uInt64 BmpSum::GetCRC( const BitmapEx& rBmpEx )
AlphaMask aAlpha;
BitmapReadAccess* pAAcc = NULL;
sal_uInt64 nRet = 0;
- sal_uInt32 nCrc = 0;
if( rBmpEx.IsTransparent() )
{
@@ -202,6 +201,7 @@ sal_uInt64 BmpSum::GetCRC( const BitmapEx& rBmpEx )
if( pRAcc && pRAcc->Width() && pRAcc->Height() )
{
SVBT32 aBT32;
+ sal_uInt32 nCrc = 0;
for( long nY = 0; nY < pRAcc->Height(); ++nY )
{