From 51a37b666a18f8d85e4a43ec2d9676d24d15c360 Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Tue, 7 Jul 2015 23:47:20 +0200 Subject: Continuing to remove Q_UNUSED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I54bc4a1b7d39abd1bb88ee361b0de5fcbca1efe8 Reviewed-on: https://code.wireshark.org/review/9546 Reviewed-by: Jörg Mayer --- ui/qt/manage_interfaces_dialog.cpp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'ui/qt/manage_interfaces_dialog.cpp') diff --git a/ui/qt/manage_interfaces_dialog.cpp b/ui/qt/manage_interfaces_dialog.cpp index 20a32f4412..c0746f8409 100644 --- a/ui/qt/manage_interfaces_dialog.cpp +++ b/ui/qt/manage_interfaces_dialog.cpp @@ -298,10 +298,8 @@ void ManageInterfacesDialog::on_delPipe_clicked() delete ui->pipeList->currentItem(); } -void ManageInterfacesDialog::on_pipeList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) +void ManageInterfacesDialog::on_pipeList_currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *) { - Q_UNUSED(current) - Q_UNUSED(previous) updateWidgets(); } @@ -467,10 +465,8 @@ void ManageInterfacesDialog::on_buttonBox_helpRequested() } #ifdef HAVE_PCAP_REMOTE -void ManageInterfacesDialog::remoteSelectionChanged(QTreeWidgetItem* item, int col) +void ManageInterfacesDialog::remoteSelectionChanged(QTreeWidgetItem*, int) { - Q_UNUSED(item) - Q_UNUSED(col) updateWidgets(); } @@ -660,10 +656,8 @@ void ManageInterfacesDialog::remoteAccepted() } } -void ManageInterfacesDialog::on_remoteList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) +void ManageInterfacesDialog::on_remoteList_currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *) { - Q_UNUSED(current) - Q_UNUSED(previous) updateWidgets(); } @@ -782,10 +776,8 @@ PathChooserDelegate::~PathChooserDelegate() { } -QWidget* PathChooserDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const +QWidget* PathChooserDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &) const { - Q_UNUSED(index) - QTreeWidgetItem *item = tree_->currentItem(); if (!item) { return NULL; @@ -821,9 +813,8 @@ QWidget* PathChooserDelegate::createEditor(QWidget *parent, const QStyleOptionVi return path_editor_; } -void PathChooserDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const +void PathChooserDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const { - Q_UNUSED(index) QRect rect = option.rect; // Make sure the editor doesn't get squashed. -- cgit v1.2.1