diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-07-29 01:48:01 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-29 01:48:01 +0200 |
| commit | 8d58ffb022649fd8a28d2f74845fc8ca5c934029 (patch) | |
| tree | 3ce6d5037e95192401a9490c9d13253101017764 /src/gui_qt.cc | |
| parent | c974e4b5df40aec646a60c747f453d11a8e7587c (diff) | |
Remove attribute(__unused__) usage
Just omitting the parameter name is more portable and less to write
Diffstat (limited to 'src/gui_qt.cc')
| -rw-r--r-- | src/gui_qt.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui_qt.cc b/src/gui_qt.cc index c47d8fc..5cd16f9 100644 --- a/src/gui_qt.cc +++ b/src/gui_qt.cc @@ -287,7 +287,7 @@ public: return QModelIndex(); } - QModelIndex parent(const QModelIndex& UNUSED(index)) const override { + QModelIndex parent(const QModelIndex&) const override { return QModelIndex(); } @@ -1142,7 +1142,7 @@ protected: v->check_->setChecked(v->value_); v->check_->setEnabled(v->enable_); v->check_->connect(v->check_, &QCheckBox::stateChanged, - [=](int UNUSED(state)) { + [=](int) { notify_changed(v->id_); }); break; @@ -1151,7 +1151,7 @@ protected: auto vp = value.get(); if (edit) { edit->connect(edit, &QLineEdit::textChanged, - [=](QString const& UNUSED(text)) { + [=](QString const&) { notify_changed(vp->id_); }); edit->setEnabled(value->enable_); @@ -1162,7 +1162,7 @@ protected: v->button_->setEnabled(v->enable_); edit->setReadOnly(true); dialog_->connect(v->button_, &QPushButton::clicked, - [=](bool UNUSED(checked)) { + [=](bool) { showFileDialog(v); }); layout->addWidget(label, row, 0); @@ -1241,7 +1241,7 @@ protected: } } - virtual int add_extra_widgets(QGridLayout*, int row, int UNUSED(columns)) { + virtual int add_extra_widgets(QGridLayout*, int row, int) { return row; } @@ -1491,7 +1491,7 @@ public: return true; } - void show(GuiWindow* UNUSED(parent)) override { + void show(GuiWindow*) override { if (widget_) { focus(); return; @@ -1584,7 +1584,7 @@ bool QtGuiMain::run(int argc, char** argv) { tree->setUniformRowHeights(true); tree->setSelectionMode(QAbstractItemView::SingleSelection); QObject::connect(tree->selectionModel(), &QItemSelectionModel::selectionChanged, - [=](QItemSelection const& selected, QItemSelection const& UNUSED(previous)) { + [=](QItemSelection const& selected, QItemSelection const&) { if (selected.size() == 1) { notify_selected_row(selected.indexes()[0].row()); } else { |
