mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a7067937b0
commit
9344dd51b7
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue