diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-12 23:51:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-12 16:28:49 -0700 |
commit | 88119b356df1dcb2f97064d213f439b636276544 (patch) | |
tree | bbb40bad0f4c3b406d1230fff9cb61e650539931 /core/subsurface-qt/DiveObjectHelper.h | |
parent | c43e5f648cb2f9b8c8bc60ec0b64965f24e7fec4 (diff) | |
download | subsurface-88119b356df1dcb2f97064d213f439b636276544.tar.gz |
DiveObjectHelper: remove default argument
We don't support null-dives in DiveObjectHelper. Defaulting the
dive parameter to NULL seems to send the wrong message.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index cb51ef82d..7e3073c00 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -51,7 +51,7 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QString fullText READ fullText CONSTANT) Q_PROPERTY(QString fullTextNoNotes READ fullTextNoNotes CONSTANT) public: - DiveObjectHelper(struct dive *dive = NULL); + DiveObjectHelper(struct dive *dive); ~DiveObjectHelper(); int number() const; int id() const; |