Spreadsheet: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user