mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: remove DiveObjectHelper::getDive()
Don't provide access to the raw dive in DiveObjectHelper. All users now access the core directly. This is a step in making DiveObjectHelper value-based. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
20e847f9d8
commit
1a6c1b275d
2 changed files with 0 additions and 6 deletions
|
@ -87,11 +87,6 @@ int DiveObjectHelper::id() const
|
||||||
return m_dive->id;
|
return m_dive->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dive *DiveObjectHelper::getDive() const
|
|
||||||
{
|
|
||||||
return m_dive;
|
|
||||||
}
|
|
||||||
|
|
||||||
QString DiveObjectHelper::date() const
|
QString DiveObjectHelper::date() const
|
||||||
{
|
{
|
||||||
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);
|
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);
|
||||||
|
|
|
@ -54,7 +54,6 @@ public:
|
||||||
bool operator!() const; // Returns true if this is an invalid default-generated object
|
bool operator!() const; // Returns true if this is an invalid default-generated object
|
||||||
int number() const;
|
int number() const;
|
||||||
int id() const;
|
int id() const;
|
||||||
struct dive *getDive() const;
|
|
||||||
int rating() const;
|
int rating() const;
|
||||||
int visibility() const;
|
int visibility() const;
|
||||||
QString date() const;
|
QString date() const;
|
||||||
|
|
Loading…
Add table
Reference in a new issue