aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2016-01-11 15:56:50 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-11 15:46:59 -0800
commit6f95242ff121f0d5e6cace4c7c07aa8536c78fdc (patch)
treeebaefbf5de10515eaff000160d50c0d4a106634b
parent75561ff9566a971d24ff596032a77219c468e906 (diff)
downloadsubsurface-6f95242ff121f0d5e6cace4c7c07aa8536c78fdc.tar.gz
Simplify: remove Maxcns and OTU variables
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.cpp6
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
index 181f89b1d..cd9d018b6 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
@@ -34,8 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
}
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
- m_maxcns(d->maxcns),
- m_otu(d->otu),
m_dive(d)
{
struct dive_site *ds = get_dive_site_by_uuid(d->dive_site_uuid);
@@ -235,12 +233,12 @@ QString DiveObjectHelper::trip() const
QString DiveObjectHelper::maxcns() const
{
- return m_maxcns;
+ return QString(m_dive->maxcns);
}
QString DiveObjectHelper::otu() const
{
- return m_otu;
+ return QString(m_dive->otu);
}
int DiveObjectHelper::rating() const
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.h b/subsurface-core/subsurface-qt/DiveObjectHelper.h
index b96eb6187..c3c8defda 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.h
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h
@@ -71,8 +71,6 @@ private:
QString m_sac;
QStringList m_weights;
QStringList m_cylinders;
- QString m_maxcns;
- QString m_otu;
struct dive *m_dive;
};
Q_DECLARE_METATYPE(DiveObjectHelper *)