diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-13 21:38:44 +0200 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-09-14 13:20:59 +0200 |
commit | 1a6c1b275da18aec2fbf9bbc574aa6b9f13b7c46 (patch) | |
tree | 5e8731dc44e02d5f85b980002bdacbe7e5ab63bb /core/subsurface-qt/DiveObjectHelper.cpp | |
parent | 20e847f9d8e307524fc33e590ffbb4ed0a248238 (diff) | |
download | subsurface-1a6c1b275da18aec2fbf9bbc574aa6b9f13b7c46.tar.gz |
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>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index cb6cf6dd1..de0c8bba9 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -87,11 +87,6 @@ int DiveObjectHelper::id() const return m_dive->id; } -struct dive *DiveObjectHelper::getDive() const -{ - return m_dive; -} - QString DiveObjectHelper::date() const { QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC); |