mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clean up some warnings
Unused variables, more initialization order complaints. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f3c84ccf75
commit
e0f8ec7144
2 changed files with 1 additions and 4 deletions
|
@ -62,8 +62,8 @@ DiveCartesianAxis::DiveCartesianAxis() : QObject(),
|
||||||
min(0),
|
min(0),
|
||||||
max(0),
|
max(0),
|
||||||
interval(1),
|
interval(1),
|
||||||
labelScale(1.0),
|
|
||||||
tick_size(0),
|
tick_size(0),
|
||||||
|
labelScale(1.0),
|
||||||
textVisibility(true),
|
textVisibility(true),
|
||||||
line_size(1)
|
line_size(1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -275,7 +275,6 @@ void DiveTemperatureItem::createTextItem(int sec, int mkelvin)
|
||||||
{
|
{
|
||||||
double deg;
|
double deg;
|
||||||
const char *unit;
|
const char *unit;
|
||||||
static text_render_options_t tro = {TEMP_TEXT_SIZE, TEMP_TEXT};
|
|
||||||
deg = get_temp_units(mkelvin, &unit);
|
deg = get_temp_units(mkelvin, &unit);
|
||||||
|
|
||||||
DiveTextItem *text = new DiveTextItem(this);
|
DiveTextItem *text = new DiveTextItem(this);
|
||||||
|
@ -301,8 +300,6 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex& topLeft, const QMo
|
||||||
if (!shouldCalculateStuff(topLeft, bottomRight))
|
if (!shouldCalculateStuff(topLeft, bottomRight))
|
||||||
return;
|
return;
|
||||||
int last_index = -1;
|
int last_index = -1;
|
||||||
int lift_pen = false;
|
|
||||||
int first_plot = true;
|
|
||||||
QPolygonF boundingPoly; // This is the "Whole Item", but a pressure can be divided in N Polygons.
|
QPolygonF boundingPoly; // This is the "Whole Item", but a pressure can be divided in N Polygons.
|
||||||
polygons.clear();
|
polygons.clear();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue