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