From 88119b356df1dcb2f97064d213f439b636276544 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 12 Aug 2019 23:51:44 +0200 Subject: 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 --- core/subsurface-qt/DiveObjectHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/subsurface-qt/DiveObjectHelper.h') 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; -- cgit v1.2.3-70-g09d2