[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 16 23:13:48 CET 2005
CVS commit by staikos:
update changes for kstvector - just minor reworking for the new update model
M +10 -13 kstvector.cpp 1.98
--- kdeextragear-2/kst/kst/kstvector.cpp #1.97:1.98
@@ -266,24 +266,21 @@ KstObject::UpdateType KstVector::update(
}
- int i, i0;
- double max, min, sum, sum2, minpos, last, v;
- double last_v;
- double dv2 = 0.0, dv, no_spike_max_dv;
+ KstObject::UpdateType providerRC = NO_CHANGE;
- max = min = sum = sum2 = minpos = last = 0.0;
- if (update_counter != -1) {
+ if (update_counter > 0) {
KstObjectPtr prov = KstObjectPtr(_provider);
if (prov) {
- prov->update(update_counter);
- /* Update anyway, it's never possible to get NO_CHANGE because of
- * the guard above
- KstObject::UpdateType u = prov->update(update_counter);
- if (u == KstObject::NO_CHANGE) {
- return u;
+ providerRC = prov->update(update_counter);
+ if (providerRC == KstObject::NO_CHANGE) {
+ return providerRC;
}
- */
}
}
+ int i, i0;
+ double max, min, sum, sum2, minpos, last, v;
+ double last_v;
+ double dv2 = 0.0, dv, no_spike_max_dv;
+ max = min = sum = sum2 = minpos = last = 0.0;
_nsum = 0;
if (_size > 0) {
More information about the Kst
mailing list