From 6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Wed, 15 Jan 2014 18:52:42 +0100 Subject: Fix some memory leaks. Memory leaks were caused by broken parent/child relations. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/modeldelegates.h') diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index 013a1c17a..72f75b0da 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -7,7 +7,7 @@ class QPainter; class DiveListDelegate : public QStyledItemDelegate{ public: - DiveListDelegate(){} + explicit DiveListDelegate(QObject *parent = 0): QStyledItemDelegate(parent){} QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const; }; -- cgit v1.2.3-70-g09d2