1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

Simplify: removed timestamp variable

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-01-11 15:34:53 -02:00 committed by Dirk Hohndel
parent 820cd0c28d
commit 8ead18a43a
2 changed files with 1 additions and 3 deletions
subsurface-core/subsurface-qt

View file

@ -34,7 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
}
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
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"))),
m_depth(get_depth_string(d->dc.maxdepth.mm, true, true)),
@ -141,7 +140,7 @@ QString DiveObjectHelper::date() const
timestamp_t DiveObjectHelper::timestamp() const
{
return m_timestamp;
return m_dive->when;
}
QString DiveObjectHelper::time() const

View file

@ -63,7 +63,6 @@ public:
private:
QString m_date;
timestamp_t m_timestamp;
QString m_time;
QString m_location;
QString m_gps;