switch RideFile::dataPoints to QVector

...so that we can binary search within them.  Also, switch a lot of
QListIterators to Qt foreach.
This commit is contained in:
Sean Rhea
2009-11-01 10:56:29 -05:00
parent f39f2b516b
commit 522824bb40
11 changed files with 17 additions and 41 deletions

View File

@@ -39,9 +39,7 @@ void RideFile::writeAsCsv(QFile &file, bool bIsMetric) const
convertUnit = 1.0;
}
QListIterator<RideFilePoint*> i(dataPoints());
while (i.hasNext()) {
RideFilePoint *point = i.next();
foreach (const RideFilePoint *point, dataPoints()) {
if (point->secs == 0.0)
continue;
out << point->secs/60.0;