From 43fbf8ab3b5b99dc50f4d17ec4f91747e9b5d611 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 27 Sep 2018 00:10:11 +0800 Subject: [PATCH] Remove default parameter in derived function When derived function have different default value than base, it might cause unnecessary confusion, see: https://stackoverflow.com/q/3533589 --- src/gui/transferlistmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistmodel.h b/src/gui/transferlistmodel.h index 3766a6797..618d33331 100644 --- a/src/gui/transferlistmodel.h +++ b/src/gui/transferlistmodel.h @@ -86,7 +86,7 @@ public: int rowCount(const QModelIndex& index = QModelIndex()) const override; int columnCount(const QModelIndex &parent=QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; - bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::DisplayRole) override; + bool setData(const QModelIndex &index, const QVariant &value, int role) override; QVariant headerData(int section, Qt::Orientation orientation, int role) const override; Qt::ItemFlags flags(const QModelIndex &index) const override;