[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdesupport/blitz/blitz
From: André_Wöbbeking <Woebbeking () kde ! org>
Date: 2007-08-20 10:19:37
Message-ID: 200708201219.37931.Woebbeking () kde ! org
[Download RAW message or body]
On Sunday 19 August 2007, Christian Ehrlicher wrote:
> SVN commit 701992 by chehrlic:
>
> fix msvc compilation / remove gcc specific language extension
>
> M +16 -8 gradient.cpp
>
>
> --- trunk/kdesupport/blitz/blitz/gradient.cpp #701991:701992
> @@ -95,8 +95,8 @@
> float rd = rca, gd = gca, bd = bca;
>
> unsigned int w = size.width(), h = size.height();
> - unsigned char xtable[3][w];
> - unsigned char ytable[3][h];
> + unsigned char **xtable = (unsigned char**)new unsigned
> char[3*w]; + unsigned char **ytable = (unsigned char**)new
> unsigned char[3*h]; w*=2, h*=2;
>
> if(eff == DiagonalGradient || eff == CrossDiagonalGradient){
> @@ -211,6 +211,8 @@
> }
> }
> }
> + delete xtable;
> + delete ytable;
delete [] ... or use a vector to do the dirty job for you or maybe even
QVarLengthArray.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic