diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-10-27 18:32:04 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-27 12:42:21 -0700 |
commit | 9344dd51b7f7155a5e6fad1b9de7071934e3c3c8 (patch) | |
tree | 97c7c475ec87cd2efdcee816e3874b287dc51f02 /profile-widget | |
parent | a7067937b0ee805f20f62b138dae7b260d20c426 (diff) | |
download | subsurface-9344dd51b7f7155a5e6fad1b9de7071934e3c3c8.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/tankitem.cpp | 3 | ||||
-rw-r--r-- | profile-widget/tankitem.h | 1 |
2 files changed, 2 insertions, 2 deletions
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 <QPen> +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<QGraphicsRectItem *> rects; }; |