Fix warning: field 'LASTcache' will be initialized after field 'source'

This commit is contained in:
Dmytro Maslenko
2025-07-25 20:11:17 -07:00
committed by Alejandro Martinez
parent e15701d05b
commit 48c6717319

View File

@@ -63,9 +63,9 @@ PowerHist::PowerHist(Context *context, bool rangemode) :
dt(1),
absolutetime(true),
cache(NULL),
LASTcache(nullptr),
source(Ride),
LASTsource(Ride)
LASTsource(Ride),
LASTcache(nullptr)
{
binw = appsettings->value(this, GC_HIST_BIN_WIDTH, 5).toInt();
if (appsettings->value(this, GC_SHADEZONES, true).toBool() == true)