Commit d4aa1a1c24 added some Q_UNUSED

statements to c++ files. The standard method to mark function parameters
as unused in cpp is to just leave out the variable name.

Change-Id: I4f07ad9f494ad16388eadb67e93ea7b26ae70eb5
Reviewed-on: https://code.wireshark.org/review/9152
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
This commit is contained in:
Joerg Mayer 2015-06-25 22:48:20 +02:00 committed by Jörg Mayer
parent dd16c55e9f
commit 8ad9019c3f
2 changed files with 2 additions and 6 deletions

View File

@ -115,7 +115,7 @@ const QString AboutDialog::plugins_scan()
return plugin_table;
}
AboutDialog::AboutDialog(QWidget *parent) :
AboutDialog::AboutDialog(QWidget *) :
QDialog(NULL),
ui(new Ui::AboutDialog)
{
@ -132,8 +132,6 @@ AboutDialog::AboutDialog(QWidget *parent) :
gchar **resultArray;
#endif
Q_UNUSED(parent);
/* Wireshark tab */
/* Construct the message string */

View File

@ -80,7 +80,7 @@ const QString sequence_number_label_ = QObject::tr("Sequence Number (B)");
const QString time_s_label_ = QObject::tr("Time (s)");
const QString window_size_label_ = QObject::tr("Window Size (B)");
TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_type graph_type) :
TCPStreamDialog::TCPStreamDialog(QWidget *, capture_file *cf, tcp_graph_type graph_type) :
QDialog(NULL, Qt::Window),
ui(new Ui::TCPStreamDialog),
cap_file_(cf),
@ -95,8 +95,6 @@ TCPStreamDialog::TCPStreamDialog(QWidget *parent, capture_file *cf, tcp_graph_ty
struct segment current;
int graph_idx = -1;
Q_UNUSED(parent);
ui->setupUi(this);
struct tcpheader *header = select_tcpip_session(cap_file_, &current);