Skip to content

Commit e891f57

Browse files
crondaemonrknall
authored andcommitted
Qt: remove CaptureFile from CredentialsModel constructor.
Unused: [55/83] Building CXX object ui/qt/CMakeFiles/qtui.dir/models/credentials_model.cpp.o /Users/stig/Development/wireshark/ui/qt/models/credentials_model.cpp:18:66: warning: unused parameter 'cf' [-Wunused-parameter] CredentialsModel::CredentialsModel(QObject *parent, CaptureFile& cf) ^ 1 warning generated. Change-Id: I8f89a8121c55bae3fdc5d317beb5a87e0135f02a Reviewed-on: https://code.wireshark.org/review/33841 Petri-Dish: Dario Lombardo <[email protected]> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <[email protected]>
1 parent ca4b950 commit e891f57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/qt/credentials_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CredentialsDialog::CredentialsDialog(QWidget &parent, CaptureFile &cf, PacketLis
5353
ui->setupUi(this);
5454
packet_list_ = packet_list;
5555

56-
model_ = new CredentialsModel(this, cf);
56+
model_ = new CredentialsModel(this);
5757
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
5858

5959
proxyModel->setSourceModel(model_);

ui/qt/models/credentials_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <file.h>
1616
#include <log.h>
1717

18-
CredentialsModel::CredentialsModel(QObject *parent, CaptureFile& cf)
18+
CredentialsModel::CredentialsModel(QObject *parent)
1919
:QAbstractListModel(parent)
2020
{
2121
}

ui/qt/models/credentials_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CredentialsModel : public QAbstractListModel
2121
{
2222
Q_OBJECT
2323
public:
24-
CredentialsModel(QObject *parent, CaptureFile& cf);
24+
CredentialsModel(QObject *parent);
2525
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const ;
2626
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
2727
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;

0 commit comments

Comments
 (0)