summaryrefslogtreecommitdiff
path: root/ui/qt/profile_dialog.cpp
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2015-07-07 08:24:50 +0200
committerJörg Mayer <jmayer@loplof.de>2015-07-07 06:29:31 +0000
commit21754f43e1e7139bcd3d673714c2a191681a63e9 (patch)
treea0b54f5031191f77cff5baa51d7c74ed0a9a4414 /ui/qt/profile_dialog.cpp
parentaca5f4ee2dc5121b822ed87859740b260eeaf759 (diff)
downloadwireshark-21754f43e1e7139bcd3d673714c2a191681a63e9.tar.gz
Starting to get rid of Q_UNUSED declarations for unused function parameters.
The official C++ way is to leave out the variable name instead. This has the advantage to be reliable: In one case a variable declared unused was later used. Change-Id: I1c96636f7fa7a621d1594d1e9cacaec75c561faa Reviewed-on: https://code.wireshark.org/review/9532 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'ui/qt/profile_dialog.cpp')
-rw-r--r--ui/qt/profile_dialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/qt/profile_dialog.cpp b/ui/qt/profile_dialog.cpp
index 8a02f5bfef..72b262632c 100644
--- a/ui/qt/profile_dialog.cpp
+++ b/ui/qt/profile_dialog.cpp
@@ -189,10 +189,8 @@ void ProfileDialog::updateWidgets()
ok_button_->setEnabled(enable_ok);
}
-void ProfileDialog::on_profileTreeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
+void ProfileDialog::on_profileTreeWidget_currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)
{
- Q_UNUSED(current);
- Q_UNUSED(previous);
if (pd_ui_->profileTreeWidget->updatesEnabled()) updateWidgets();
}