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

This commit is contained in:
Benjamin Nauck
2025-03-27 19:02:45 +01:00
parent 41756a3726
commit cf94011294
40 changed files with 243 additions and 220 deletions

View File

@@ -28,7 +28,6 @@
#include <boost/signals2/connection.hpp>
#endif
#include <climits>
#include <App/DocumentObject.h>
#include <Base/Console.h>
@@ -404,7 +403,7 @@ void ViewProviderDrawingView::stackTop()
//no view, nothing to stack
return;
}
int maxZ = INT_MIN;
int maxZ = std::numeric_limits<int>::min();
auto parent = qView->parentItem();
if (parent) {
//if we have a parentItem, we have to stack within the parentItem, not within the page
@@ -439,7 +438,7 @@ void ViewProviderDrawingView::stackBottom()
//no view, nothing to stack
return;
}
int minZ = INT_MAX;
int minZ = std::numeric_limits<int>::max();
auto parent = qView->parentItem();
if (parent) {
//if we have a parentItem, we have to stack within the parentItem, not within the page