[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Mar 18 01:28:44 CET 2004
CVS commit by staikos:
iteration 101
M +3 -8 updatethread.cpp 1.5
--- kdeextragear-2/kst/kst/updatethread.cpp #1.4:1.5
@@ -83,10 +83,6 @@ bool UpdateThread::doUpdates(bool force)
// Update the files
KST::dataSourceList.lock().readLock();
- for (i = 0;;) {
unsigned cnt = KST::dataSourceList.count();
- if (i >= cnt) {
- break;
- }
-
+ for (i = 0; i < cnt; ++i) {
KstDataSourcePtr dsp = KST::dataSourceList[i];
@@ -97,5 +93,4 @@ bool UpdateThread::doUpdates(bool force)
return U == KstObject::UPDATE;
}
- ++i;
}
KST::dataSourceList.lock().readUnlock();
@@ -162,4 +157,5 @@ bool UpdateThread::doUpdates(bool force)
for (i = 0; i < cl.count(); ++i) {
KstBaseCurvePtr dop = cl[i];
+ //kdDebug() << "updating curve: " << (void*)dop << " - " << dop->tagName() << endl;
dop->writeLock();
@@ -170,5 +166,4 @@ bool UpdateThread::doUpdates(bool force)
return U == KstObject::UPDATE;
}
- ++i;
}
}
More information about the Kst
mailing list