Fix several compiler warnings:

* Fix [-Wsign-compare]
* Fix [-Wc++20-designator]: designated initializers are a C++20 extension
* Fix [-Wunused-parameter]
This commit is contained in:
wmayer
2024-12-13 21:18:14 +01:00
committed by Chris Hennes
parent a605e3d316
commit 02a5538fba
4 changed files with 12 additions and 10 deletions

View File

@@ -119,6 +119,7 @@ SheetTableView::SheetTableView(QWidget* parent)
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
connect(verticalHeader(), &QWidget::customContextMenuRequested, [this](const QPoint& point) {
Q_UNUSED(point)
QMenu menu {nullptr};
const auto selection = selectionModel()->selectedRows();
const auto& [min, max] = selectedMinMaxRows(selection);
@@ -145,6 +146,7 @@ SheetTableView::SheetTableView(QWidget* parent)
});
connect(horizontalHeader(), &QWidget::customContextMenuRequested, [this](const QPoint& point) {
Q_UNUSED(point)
QMenu menu {nullptr};
const auto selection = selectionModel()->selectedColumns();
const auto& [min, max] = selectedMinMaxColumns(selection);