From e0f8ec7144f2a952f003b8ad19aaa26d58537f4e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 16 Feb 2014 10:44:23 -0800 Subject: Clean up some warnings Unused variables, more initialization order complaints. Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.cpp | 2 +- qt-ui/profile/diveprofileitem.cpp | 3 --- 2 files changed, 1 insertion(+), 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(); -- cgit v1.2.3-70-g09d2