summaryrefslogtreecommitdiff
path: root/ui/qt/sequence_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/sequence_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/sequence_dialog.cpp')
-rw-r--r--ui/qt/sequence_dialog.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp
index f70bf8b5d7..8630146e2b 100644
--- a/ui/qt/sequence_dialog.cpp
+++ b/ui/qt/sequence_dialog.cpp
@@ -152,15 +152,13 @@ void SequenceDialog::updateWidgets()
{
}
-void SequenceDialog::showEvent(QShowEvent *event)
+void SequenceDialog::showEvent(QShowEvent *)
{
- Q_UNUSED(event);
resetAxes();
}
-void SequenceDialog::resizeEvent(QResizeEvent *event)
+void SequenceDialog::resizeEvent(QResizeEvent *)
{
- Q_UNUSED(event);
resetAxes(true);
}
@@ -288,9 +286,8 @@ void SequenceDialog::mouseMoved(QMouseEvent *event)
ui->hintLabel->setText(hint);
}
-void SequenceDialog::mouseReleased(QMouseEvent *event)
+void SequenceDialog::mouseReleased(QMouseEvent *)
{
- Q_UNUSED(event);
if (ui->sequencePlot->cursor().shape() == Qt::ClosedHandCursor) {
ui->sequencePlot->setCursor(QCursor(Qt::OpenHandCursor));
}