diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-16 10:44:23 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-16 10:44:23 -0800 |
commit | e0f8ec7144f2a952f003b8ad19aaa26d58537f4e (patch) | |
tree | 8da6b9c3da30a58e74fdb1dccdd556cb3ae72912 /qt-ui/profile | |
parent | f3c84ccf75a4955d0927f9d86a9c26a840f83add (diff) | |
download | subsurface-e0f8ec7144f2a952f003b8ad19aaa26d58537f4e.tar.gz |
Clean up some warnings
Unused variables, more initialization order complaints.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.cpp | 2 | ||||
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index bb77a341d..e7c043c66 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -62,8 +62,8 @@ DiveCartesianAxis::DiveCartesianAxis() : QObject(), min(0), max(0), interval(1), - labelScale(1.0), tick_size(0), + labelScale(1.0), textVisibility(true), line_size(1) { diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 58dfa4933..20ad3992b 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -275,7 +275,6 @@ void DiveTemperatureItem::createTextItem(int sec, int mkelvin) { double deg; const char *unit; - static text_render_options_t tro = {TEMP_TEXT_SIZE, TEMP_TEXT}; deg = get_temp_units(mkelvin, &unit); DiveTextItem *text = new DiveTextItem(this); @@ -301,8 +300,6 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex& topLeft, const QMo if (!shouldCalculateStuff(topLeft, bottomRight)) return; 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. polygons.clear(); |