r19596 by jghali - #12778, patch 06/17: fix a series of warnings from clang
scribus-commit
scribus-commit at lists.scribus.net
Fri Oct 17 22:54:43 UTC 2014
Author: jghali
Date: Fri Oct 17 22:54:43 2014
New Revision: 19596
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19596
Log:
#12778, patch 06/17: fix a series of warnings from clang
Modified:
trunk/Scribus/scribus/scimage.cpp
trunk/Scribus/scribus/scpainter.cpp
Modified: trunk/Scribus/scribus/scimage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19596&path=/trunk/Scribus/scribus/scimage.cpp
==============================================================================
--- trunk/Scribus/scribus/scimage.cpp (original)
+++ trunk/Scribus/scribus/scimage.cpp Fri Oct 17 22:54:43 2014
@@ -436,7 +436,7 @@
rinsum = ginsum = binsum = ainsum
= routsum = goutsum = boutsum = aoutsum
= rsum = gsum = bsum = asum = 0;
- for(i =- radius; i <= radius; ++i)
+ for(i = -radius; i <= radius; ++i)
{
p = pix[yi+qMin(wm,qMax(i,0))];
sir = stack[i+radius];
Modified: trunk/Scribus/scribus/scpainter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19596&path=/trunk/Scribus/scribus/scpainter.cpp
==============================================================================
--- trunk/Scribus/scribus/scpainter.cpp (original)
+++ trunk/Scribus/scribus/scpainter.cpp Fri Oct 17 22:54:43 2014
@@ -2110,7 +2110,7 @@
for (y = 0; y < h; ++y)
{
ainsum = aoutsum = asum = 0;
- for(i =- radius; i <= radius; ++i)
+ for(i = -radius; i <= radius; ++i)
{
p = pix[yi+qMin(wm,qMax(i,0))];
sir = stack[i+radius];
@@ -2147,8 +2147,8 @@
for (x=0; x < w; ++x)
{
ainsum = aoutsum = asum = 0;
- yp =- radius * w;
- for(i=-radius; i <= radius; ++i)
+ yp = -radius * w;
+ for(i = -radius; i <= radius; ++i)
{
yi=qMax(0,yp)+x;
sir = stack[i+radius];
@@ -2241,7 +2241,7 @@
for (y = 0; y < h; ++y)
{
rinsum = ginsum = binsum = ainsum = routsum = goutsum = boutsum = aoutsum = rsum = gsum = bsum = asum = 0;
- for(i =- radius; i <= radius; ++i)
+ for(i = -radius; i <= radius; ++i)
{
p = pix[yi+qMin(wm,qMax(i,0))];
sir = stack[i+radius];
More information about the scribus-commit
mailing list