From cb410fe1ba101c58f1634fda28e410d8bbbfe201 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 12 Feb 2023 13:03:28 +0100 Subject: [PATCH] cleanup: don't define empty inline constructor Just use the constructor of the parent class. Signed-off-by: Berthold Stoeger --- desktop-widgets/modeldelegates.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/desktop-widgets/modeldelegates.h b/desktop-widgets/modeldelegates.h index 93307e48b..4f3e12804 100644 --- a/desktop-widgets/modeldelegates.h +++ b/desktop-widgets/modeldelegates.h @@ -12,10 +12,7 @@ struct divecomputer; class DiveListDelegate : public QStyledItemDelegate { public: - explicit DiveListDelegate(QObject *parent = 0) - : QStyledItemDelegate(parent) - { - } + using QStyledItemDelegate::QStyledItemDelegate; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; };