Use maybe_unused instead of Q_UNUSED

This commit is contained in:
Vitor Kiguchi
2020-08-15 10:55:54 -03:00
parent 62a69e0547
commit db0383fe0e
11 changed files with 26 additions and 42 deletions

View File

@ -326,8 +326,8 @@ void ConfigureTouchFromButton::OnBindingChanged(QStandardItem* item) {
}
}
void ConfigureTouchFromButton::OnBindingDeleted(const QModelIndex& parent, int first, int last) {
Q_UNUSED(parent);
void ConfigureTouchFromButton::OnBindingDeleted([[maybe_unused]] const QModelIndex& parent,
int first, int last) {
for (int i = first; i <= last; ++i) {
auto ix = binding_list_model->index(i, 0);
if (!ix.isValid()) {
@ -514,8 +514,7 @@ void TouchScreenPreview::mouseMoveEvent(QMouseEvent* event) {
}
}
void TouchScreenPreview::leaveEvent(QEvent* event) {
Q_UNUSED(event);
void TouchScreenPreview::leaveEvent([[maybe_unused]] QEvent* event) {
if (coord_label) {
coord_label->clear();
}