From 355f9e4e2ebace6cce52a277cbaf1d1bfc904d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Mon, 9 May 2016 10:48:44 +0200 Subject: Initial Refactoring on PowerList --- src/powerlist.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/powerlist.h') diff --git a/src/powerlist.h b/src/powerlist.h index 53a42b8..ff360b4 100644 --- a/src/powerlist.h +++ b/src/powerlist.h @@ -38,13 +38,12 @@ public: void add(Sample* s); void finalise(); ///< Call this when no more samples will be added. - + Sample* get(level_t velocity); private: - class PowerListItem + struct PowerListItem { - public: Sample* sample; float power; }; @@ -54,7 +53,7 @@ private: std::vector samples; float power_max; float power_min; - + Channel* getMasterChannel(); Sample* lastsample; }; -- cgit v1.2.3