From da49eca783306f3369105be39f24690d98f54476 Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Fri, 8 Sep 2023 01:25:02 +0200 Subject: [PATCH 1/3] refactor(batterylinux): include assert header --- src/util/battery/batterylinux.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/battery/batterylinux.cpp b/src/util/battery/batterylinux.cpp index 5ae4fa897bf..970e4020aea 100644 --- a/src/util/battery/batterylinux.cpp +++ b/src/util/battery/batterylinux.cpp @@ -7,6 +7,7 @@ #include #include "moc_batterylinux.cpp" +#include "util/assert.h" BatteryLinux::BatteryLinux(QObject* pParent) : Battery(pParent), From c26c63e5c0e3cb191f9e9a2aef351bfa6fb02b9e Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Fri, 8 Sep 2023 01:21:18 +0200 Subject: [PATCH 2/3] refactor(util/battery): use correct includes --- src/util/battery/battery.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/battery/battery.h b/src/util/battery/battery.h index 6eef33bc5dd..5efc71d0b0e 100644 --- a/src/util/battery/battery.h +++ b/src/util/battery/battery.h @@ -1,6 +1,7 @@ #pragma once -#include "util/timer.h" +#include +#include class Battery : public QObject { Q_OBJECT From dea19a34848ee474ccca77b2b39c3b350c18b929 Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Fri, 8 Sep 2023 01:15:35 +0200 Subject: [PATCH 3/3] refactor(util/timer): cleanup includes --- src/util/timer.cpp | 3 --- src/util/timer.h | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/util/timer.cpp b/src/util/timer.cpp index 30c29d64719..bd7f570f4fb 100644 --- a/src/util/timer.cpp +++ b/src/util/timer.cpp @@ -1,9 +1,6 @@ #include "util/timer.h" -#include "moc_timer.cpp" #include "util/experiment.h" -#include "util/time.h" -#include "waveform/guitick.h" Timer::Timer(QString key, Stat::ComputeFlags compute) : m_key(std::move(key)), diff --git a/src/util/timer.h b/src/util/timer.h index 51948b0d3ef..3118d218f9c 100644 --- a/src/util/timer.h +++ b/src/util/timer.h @@ -1,13 +1,11 @@ #pragma once -#include +#include #include #include -#include "control/controlproxy.h" #include "util/cmdlineargs.h" #include "util/duration.h" -#include "util/parented_ptr.h" #include "util/performancetimer.h" #include "util/stat.h"