You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/02/27 15:03:28 UTC

svn commit: r1450778 - /openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx

Author: hdu
Date: Wed Feb 27 14:03:27 2013
New Revision: 1450778

URL: http://svn.apache.org/r1450778
Log:
WaE: removed suspicious self-assignments in the new BMP_SCALE_* code

Modified:
    openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx

Modified: openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx?rev=1450778&r1=1450777&r2=1450778&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx (original)
+++ openoffice/trunk/main/vcl/source/gdi/bitmap3.cxx Wed Feb 27 14:03:27 2013
@@ -1559,7 +1559,6 @@ sal_Bool Bitmap::ImplScaleSuper( 
 									else
 										nWeightY = nMax;
 									
-									nWeightY = nWeightY ;								
 									nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
 									nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
 									nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1704,7 +1703,6 @@ sal_Bool Bitmap::ImplScaleSuper( 
 									else
 										nWeightY = nMax;
 									
-									nWeightY = nWeightY ;								
 									nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
 									nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
 									nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1851,7 +1849,6 @@ sal_Bool Bitmap::ImplScaleSuper( 
 									else
 										nWeightY = nMax;
 									
-									nWeightY = nWeightY ;								
 									nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
 									nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
 									nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -1996,7 +1993,6 @@ sal_Bool Bitmap::ImplScaleSuper( 
 									else
 										nWeightY = nMax;
 									
-									nWeightY = nWeightY ;								
 									nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
 									nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
 									nSumR += nWeightY * ( nSumRowR / nTotalWeightX );
@@ -2139,7 +2135,6 @@ sal_Bool Bitmap::ImplScaleSuper( 
 									else
 										nWeightY = nMax;
 									
-									nWeightY = nWeightY ;								
 									nSumB += nWeightY * ( nSumRowB / nTotalWeightX );
 									nSumG += nWeightY * ( nSumRowG / nTotalWeightX );
 									nSumR += nWeightY * ( nSumRowR / nTotalWeightX );