diff options
author | Joerg Mayer <jmayer@loplof.de> | 2015-07-07 08:24:50 +0200 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2015-07-07 06:29:31 +0000 |
commit | 21754f43e1e7139bcd3d673714c2a191681a63e9 (patch) | |
tree | a0b54f5031191f77cff5baa51d7c74ed0a9a4414 /ui/qt/packet_format_group_box.cpp | |
parent | aca5f4ee2dc5121b822ed87859740b260eeaf759 (diff) |
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/packet_format_group_box.cpp')
-rw-r--r-- | ui/qt/packet_format_group_box.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/qt/packet_format_group_box.cpp b/ui/qt/packet_format_group_box.cpp index d62c55d31a..fbc424d1f2 100644 --- a/ui/qt/packet_format_group_box.cpp +++ b/ui/qt/packet_format_group_box.cpp @@ -75,9 +75,8 @@ bool PacketFormatGroupBox::allExpandedEnabled() return pf_ui_->allExpandedButton->isChecked(); } -void PacketFormatGroupBox::on_summaryCheckBox_toggled(bool checked) +void PacketFormatGroupBox::on_summaryCheckBox_toggled(bool) { - Q_UNUSED(checked); emit formatChanged(); } @@ -89,9 +88,8 @@ void PacketFormatGroupBox::on_detailsCheckBox_toggled(bool checked) emit formatChanged(); } -void PacketFormatGroupBox::on_bytesCheckBox_toggled(bool checked) +void PacketFormatGroupBox::on_bytesCheckBox_toggled(bool) { - Q_UNUSED(checked); emit formatChanged(); } |