mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user