[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Jul 15 20:20:49 CEST 2003
CVS commit by staikos:
- remove some unused stuff from kstequationcurve
- make kstvector explicitly ref count to be safe
M +1 -1 kstequationcurve.cpp 1.29
M +0 -2 kstequationcurve.h 1.18
M +10 -0 kstvector.cpp 1.34
--- kdeextragear-2/kst/kst/kstequationcurve.h #1.17:1.18
@@ -81,6 +81,4 @@ private:
bool _staticX;
- KstBaseCurveList *clist;
-
KstVectorList VectorsUsed;
KstScalarList ScalarsUsed;
--- kdeextragear-2/kst/kst/kstvector.cpp #1.33:1.34
@@ -74,4 +74,5 @@ KstVector::~KstVector() {
for (QDictIterator<KstScalar> it(_scalars); it.current(); ++it) {
KST::scalarList.remove(it.current());
+ it.current()->_KShared_unref();
}
@@ -136,12 +137,21 @@ double KstVector::value(int i) {
void KstVector::CreateScalars() {
_scalars.insert("max", new KstScalar(_tag + "-Max"));
+ _scalars["max"]->_KShared_ref();
_scalars.insert("min", new KstScalar(_tag + "-Min"));
+ _scalars["min"]->_KShared_ref();
_scalars.insert("mean", new KstScalar(_tag + "-Mean"));
+ _scalars["mean"]->_KShared_ref();
_scalars.insert("sigma", new KstScalar(_tag + "-Sigma"));
+ _scalars["sigma"]->_KShared_ref();
_scalars.insert("rms", new KstScalar(_tag + "-Rms"));
+ _scalars["rms"]->_KShared_ref();
_scalars.insert("ns", new KstScalar(_tag + "-NS"));
+ _scalars["ns"]->_KShared_ref();
_scalars.insert("sum", new KstScalar(_tag + "-Sum"));
+ _scalars["sum"]->_KShared_ref();
_scalars.insert("sumsquared", new KstScalar(_tag + "-SumSquared"));
+ _scalars["sumsquared"]->_KShared_ref();
_scalars.insert("minpos", new KstScalar(_tag + "-MinPos"));
+ _scalars["minpos"]->_KShared_ref();
}
More information about the Kst
mailing list