From 9344dd51b7f7155a5e6fad1b9de7071934e3c3c8 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 27 Oct 2019 18:32:04 +0100 Subject: Cleanup: turn TankItem member variable into a constant TankItem had a "height" member variable that was never modified. Turn it into a constant, which is local to the translation unit. Signed-off-by: Berthold Stoeger --- profile-widget/tankitem.cpp | 3 ++- profile-widget/tankitem.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'profile-widget') diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp index 504d35a9e..ea50dd9cf 100644 --- a/profile-widget/tankitem.cpp +++ b/profile-widget/tankitem.cpp @@ -5,11 +5,12 @@ #include "core/profile.h" #include +static const qreal height = 3.0; + TankItem::TankItem(QObject *parent) : QObject(parent), plotEndTime(-1) { - height = 3; QColor red(PERSIANRED1); QColor blue(AIR_BLUE); QColor yellow(NITROX_YELLOW); diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index 545f9ad9c..73994444b 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -27,7 +27,6 @@ private: void createBar(int startTime, int stopTime, struct gasmix gas); DiveCartesianAxis *hAxis; int plotEndTime; - qreal height; QBrush air, nitrox, oxygen, trimix; QList rects; }; -- cgit v1.2.3-70-g09d2