summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/bitmap3.cxx
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2001-08-27 11:57:08 +0000
committerKai Ahrens <ka@openoffice.org>2001-08-27 11:57:08 +0000
commit1e9558c3336bf71490b7e1ccab8b472d1c082fb1 (patch)
tree6f6cb9e33eb6bd115596d67bed85193833ca8507 /vcl/source/gdi/bitmap3.cxx
parent5348eac7d67ebb727512fb0ca1f6b03cf53142bb (diff)
#91558#: don't use, assign and increment variable in one line (ReducePopular)
Diffstat (limited to 'vcl/source/gdi/bitmap3.cxx')
-rw-r--r--vcl/source/gdi/bitmap3.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 0e193a066760..77acf71bcc69 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap3.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ka $ $Date: 2001-08-14 10:33:38 $
+ * last change: $Author: ka $ $Date: 2001-08-27 12:57:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1767,9 +1767,16 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
rtl_zeroMemory( pCountTable, nTotalColors * sizeof( PopularColorCount ) );
for( nR = 0, nIndex = 0; nR < 256; nR += nColorOffset )
+ {
for( nG = 0; nG < 256; nG += nColorOffset )
+ {
for( nB = 0; nB < 256; nB += nColorOffset )
- pCountTable[ nIndex ].mnIndex = nIndex++;
+ {
+ pCountTable[ nIndex ].mnIndex = nIndex;
+ nIndex++;
+ }
+ }
+ }
if( pRAcc->HasPalette() )
{