Code Cleanup: Ride Data and Friends

.. cleaning XXX and misleading comments
This commit is contained in:
Mark Liversedge
2013-02-10 10:57:33 +00:00
parent 427e74d380
commit b527a9ed33
4 changed files with 8 additions and 19 deletions

View File

@@ -78,9 +78,6 @@ RideFileCache::RideFileCache(MainWindow *main, QString fileName, RideFile *passe
// is it as recent as we are?
if (head.version == RideFileCacheVersion) {
// Are the CP/LTHR values still correct
// XXX todo
// WE'RE GOOD
if (check == false) readCache(); // if check is false we aren't just checking
return;
@@ -483,8 +480,8 @@ void RideFileCache::RideFileCache::compute()
data_t *
MeanMaxComputer::integrate_series(cpintdata &data)
{
data_t *integrated= (data_t *)malloc(sizeof(data_t)*(data.points.size()+1)); //XXX use QVector... todo
// would be better to do pure QT and use QVector -- but no memory leak
data_t *integrated= (data_t *)malloc(sizeof(data_t)*(data.points.size()+1));
int i;
data_t acc=0;