desktop-widgets: replace (void) with no parameter name

Unused parameters in C++ are "silenced" by removing the name.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-22 08:04:28 +02:00 committed by Dirk Hohndel
parent 12b4f2235b
commit cb9951a484
2 changed files with 1 additions and 3 deletions

View file

@ -1044,8 +1044,7 @@ void DiveListView::updateLastImageTimeOffset(const int offset)
s.setValue("LastImageTimeOffset", offset);
}
void DiveListView::mouseDoubleClickEvent(QMouseEvent * event)
void DiveListView::mouseDoubleClickEvent(QMouseEvent*)
{
(void) event;
return;
}

View file

@ -415,7 +415,6 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
struct dive *d;
struct dive_site *ds;
bool changed = false;
(void)changed;
clear_table(&gps_location_table);
QByteArray url = tr("Webservice").toUtf8();
parse_xml_buffer(url.data(), downloadedData.data(), downloadedData.length(), &gps_location_table, NULL);