From 820cd0c28d9db6a6bc00a4bd8310bb669bec4db4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 11 Jan 2016 15:05:07 -0200 Subject: Simplify: remove uneeded variable, rating. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- subsurface-core/subsurface-qt/DiveObjectHelper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'subsurface-core/subsurface-qt/DiveObjectHelper.cpp') diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp index c7e111d3b..621918ef0 100644 --- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp +++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp @@ -34,7 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx) } DiveObjectHelper::DiveObjectHelper(struct dive *d) : - m_rating(d->rating), m_timestamp(d->when), m_location(get_dive_location(d) ? QString::fromUtf8(get_dive_location(d)) : EMPTY_DIVE_STRING), m_duration(get_dive_duration_string(d->duration.seconds, QObject::tr("h:"), QObject::tr("min"))), @@ -255,5 +254,5 @@ QString DiveObjectHelper::otu() const int DiveObjectHelper::rating() const { - return m_rating; + return m_dive->rating; } -- cgit v1.2.3-70-g09d2