[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jan 7 22:44:00 CET 2004


On Wednesday 07 January 2004 16:38, George Staikos wrote:
> CVS commit by staikos:
>
>   M +48 -50    kstlegend.cpp   1.3
>   M +1 -1      kstplot.cpp   1.30
> --- kdeextragear-2/kst/kst/kstlegend.cpp  #1.2:1.3
> @@ -158,6 +158,4 @@ void KstLegend::draw(KstBaseCurveList* p
>    if(ShowLegend) {
>      pLabels = new KstLabel[pCurves->count()];
> -    if( pLabels != 0L )
> -    {
>        penOld = p.pen();
>        p.setFont(TextFont);
> @@ -224,5 +223,4 @@ void KstLegend::draw(KstBaseCurveList* p
>          p.setPen(penOld);
>        }
> -    }
>      delete[] pLabels;
>    }

   FYI there is no need to check for null return codes from operator new.  It 
will just throw an exception or crash soon after anyway.  That's the reason 
for the big invisible change in kstlegend.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list