[Kst] extragear/graphics/kst/src/libkstmath

Duncan Hanson duncan.hanson at gmail.com
Mon Jul 10 19:35:09 CEST 2006


thanks for the explanation barth.

devel-docs/codingstyle.txt forbids us from using c++ exceptions- how
should we check for allocing errors?

duncan.

On Sat, 2006-07-08 at 08:21 -0700, Barth Netterfield wrote:
> For reference, the c++ standard now states that by default, new does not 
> return null on out of memory.
> 
> google gives me http://people.bu.edu/ksdb/cpp_tips.html#Dynamic on the topic 
> (but I make no comment on the quality of the advice on this page).
> 
> cbn
> 
> On Saturday 08 July 2006 00:32, George Staikos wrote:
> > SVN commit 559716 by staikos:
> >
> > impossible
> >
> >
> >  M  +0 -8      psdcalculator.cpp
> >
> >
> > --- trunk/extragear/graphics/kst/src/libkstmath/psdcalculator.cpp
> > #559715:559716 @@ -169,14 +169,6 @@
> >      _a = new double[_awLen];
> >      _w = new double[_awLen];
> >
> > -    if (!_a || !_w) {
> > -      delete[] _a;
> > -      delete[] _w;
> > -
> > -      KstDebug::self()->log(i18n("in
> > PSDCalculator::calculatePowerSpectrum: unable to allocate _a or _w
> > array."), KstDebug::Error); -      return -1;
> > -    }
> > -
> >      updateWindowFxn(apodizeFxn, gaussianSigma);
> >    }
> >
> > _______________________________________________
> > Kst mailing list
> > Kst at kde.org
> > https://mail.kde.org/mailman/listinfo/kst
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst



More information about the Kst mailing list