diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 11:59:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 11:59:41 +0000 |
commit | 0f56d59f0c818b3d63651d76d0a0bf15a1669988 (patch) | |
tree | f58a34130372298db06934ce249538a36ee48b8c /svtools | |
parent | acb97d8396e4679c53d890813bdad4b4d0e470f5 (diff) |
cppcheck: Can reduce the scope of this variable
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter.vcl/filter/sgfbram.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/filter.vcl/filter/sgfbram.cxx b/svtools/source/filter.vcl/filter/sgfbram.cxx index f07c8a7dbf0c..2f5aaad24d9c 100644 --- a/svtools/source/filter.vcl/filter/sgfbram.cxx +++ b/svtools/source/filter.vcl/filter/sgfbram.cxx @@ -297,7 +297,7 @@ BOOL SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead, SgfEntry&) USHORT nColBits; // Anzahl der Bits/Pixel (2, 4, 8) USHORT i,j,k; // Spaltenzaehler, Zeilenzaehler, Planezaehler USHORT a,b; // Hilfsvariable - BYTE pl1 = 0,pl2= 0; // Masken fuer die Planes + BYTE pl1 = 0; // Masken fuer die Planes BYTE* pBuf=NULL; // Buffer fuer eine Pixelzeile PcxExpand aPcx; ULONG nOfs; @@ -344,6 +344,8 @@ BOOL SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead, SgfEntry&) rOut.Write((char*)pBuf,nWdtOut); } } else if (nColors==16) { + BYTE pl2= 0; // Masken fuer die Planes + rOut<<RGBQuad(0x00,0x00,0x00); // Schwarz rOut<<RGBQuad(0x24,0x24,0x24); // Grau 80% rOut<<RGBQuad(0x49,0x49,0x49); // Grau 60% |