mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 08:26:17 +00:00
Simplify: remove uneeded variable: id
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed97f9f315
commit
438b5df089
2 changed files with 1 additions and 3 deletions
|
@ -34,7 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
|
||||||
}
|
}
|
||||||
|
|
||||||
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
|
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
|
||||||
m_id(d->id),
|
|
||||||
m_rating(d->rating),
|
m_rating(d->rating),
|
||||||
m_timestamp(d->when),
|
m_timestamp(d->when),
|
||||||
m_location(get_dive_location(d) ? QString::fromUtf8(get_dive_location(d)) : EMPTY_DIVE_STRING),
|
m_location(get_dive_location(d) ? QString::fromUtf8(get_dive_location(d)) : EMPTY_DIVE_STRING),
|
||||||
|
@ -133,7 +132,7 @@ int DiveObjectHelper::number() const
|
||||||
|
|
||||||
int DiveObjectHelper::id() const
|
int DiveObjectHelper::id() const
|
||||||
{
|
{
|
||||||
return m_id;
|
return m_dive->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString DiveObjectHelper::date() const
|
QString DiveObjectHelper::date() const
|
||||||
|
|
|
@ -62,7 +62,6 @@ public:
|
||||||
QString otu() const;
|
QString otu() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_id;
|
|
||||||
int m_rating;
|
int m_rating;
|
||||||
QString m_date;
|
QString m_date;
|
||||||
timestamp_t m_timestamp;
|
timestamp_t m_timestamp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue