From e536682b84eda7444be1c9b85e0d5942596c6914 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 21 May 2018 18:09:09 +0200 Subject: desktop-widgets: Change Q_UNUSED to no parameter name C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen --- desktop-widgets/simplewidgets.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'desktop-widgets/simplewidgets.cpp') diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index 2566c7b12..86b705cfc 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -68,9 +68,8 @@ double MinMaxAvgWidget::minimum() const return d->minValue->text().toDouble(); } -MinMaxAvgWidget::MinMaxAvgWidget(QWidget *parent) : d(new MinMaxAvgWidgetPrivate(this)) +MinMaxAvgWidget::MinMaxAvgWidget(QWidget*) : d(new MinMaxAvgWidgetPrivate(this)) { - Q_UNUSED(parent) } MinMaxAvgWidget::~MinMaxAvgWidget() @@ -261,9 +260,8 @@ void ShiftTimesDialog::buttonClicked(QAbstractButton *button) } } -void ShiftTimesDialog::showEvent(QShowEvent *event) +void ShiftTimesDialog::showEvent(QShowEvent*) { - Q_UNUSED(event) ui.timeEdit->setTime(QTime(0, 0, 0, 0)); when = get_times(); //get time of first selected dive ui.currentTime->setText(get_dive_date_string(when)); -- cgit v1.2.3-70-g09d2