mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
aggregateWith takes a const reference
This commit is contained in:
@@ -205,35 +205,35 @@ WeeklySummaryWindow::refresh()
|
||||
|
||||
RideMetric *m;
|
||||
if ((m = item->metrics.value(weeklySeconds->symbol()))) {
|
||||
weeklySeconds->aggregateWith(m);
|
||||
dailySeconds[day]->aggregateWith(m);
|
||||
weeklySeconds->aggregateWith(*m);
|
||||
dailySeconds[day]->aggregateWith(*m);
|
||||
}
|
||||
|
||||
if ((m = item->metrics.value(weeklyDistance->symbol()))) {
|
||||
weeklyDistance->aggregateWith(m);
|
||||
dailyDistance[day]->aggregateWith(m);
|
||||
weeklyDistance->aggregateWith(*m);
|
||||
dailyDistance[day]->aggregateWith(*m);
|
||||
}
|
||||
|
||||
if ((m = item->metrics.value(weeklyWork->symbol()))) {
|
||||
weeklyWork->aggregateWith(m);
|
||||
dailyW[day]->aggregateWith(m);
|
||||
weeklyWork->aggregateWith(*m);
|
||||
dailyW[day]->aggregateWith(*m);
|
||||
}
|
||||
|
||||
if ((m = item->metrics.value(weeklyCS->symbol())))
|
||||
weeklyCS->aggregateWith(m);
|
||||
weeklyCS->aggregateWith(*m);
|
||||
|
||||
if ((m = item->metrics.value(weeklyBS->symbol()))) {
|
||||
weeklyBS->aggregateWith(m);
|
||||
dailyBS[day]->aggregateWith(m);
|
||||
weeklyBS->aggregateWith(*m);
|
||||
dailyBS[day]->aggregateWith(*m);
|
||||
}
|
||||
|
||||
if ((m = item->metrics.value(weeklyRelIntensity->symbol()))) {
|
||||
weeklyRelIntensity->aggregateWith(m);
|
||||
dailyRI[day]->aggregateWith(m);
|
||||
weeklyRelIntensity->aggregateWith(*m);
|
||||
dailyRI[day]->aggregateWith(*m);
|
||||
}
|
||||
|
||||
if ((m = item->metrics.value("skiba_xpower")))
|
||||
dailyXP[day]->aggregateWith(m);
|
||||
dailyXP[day]->aggregateWith(*m);
|
||||
|
||||
// compute time in zones
|
||||
if (zones) {
|
||||
|
||||
Reference in New Issue
Block a user