Spreadsheet: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 19:02:32 +01:00
parent b4eb28e50e
commit dc19a631a5

View File

@@ -698,9 +698,9 @@ void SheetTableView::copySelection()
void SheetTableView::_copySelection(const std::vector<App::Range>& ranges, bool copy)
{
int minRow = INT_MAX;
int minRow = std::numeric_limits<int>::max();
int maxRow = 0;
int minCol = INT_MAX;
int minCol = std::numeric_limits<int>::max();
int maxCol = 0;
for (auto& range : ranges) {
minRow = std::min(minRow, range.from().row());