[Kst] extragear/graphics/kst/src/libkstmath
Barth Netterfield
netterfield at physics.utoronto.ca
Sat Jul 8 17:21:31 CEST 2006
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
More information about the Kst
mailing list