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

This commit is contained in:
Benjamin Nauck
2025-03-27 19:00:18 +01:00
parent 984c0d43fd
commit a7b71335b7
12 changed files with 44 additions and 60 deletions

View File

@@ -183,11 +183,11 @@ ViewProviderPath::ViewProviderPath()
ShowCountConstraints.LowerBound = 0;
ShowCountConstraints.UpperBound = INT_MAX;
ShowCountConstraints.UpperBound = std::numeric_limits<int>::max();
ShowCountConstraints.StepSize = 1;
ShowCount.setConstraints(&ShowCountConstraints);
StartIndexConstraints.LowerBound = 0;
StartIndexConstraints.UpperBound = INT_MAX;
StartIndexConstraints.UpperBound = std::numeric_limits<int>::max();
StartIndexConstraints.StepSize = 1;
StartIndex.setConstraints(&StartIndexConstraints);
ADD_PROPERTY_TYPE(StartPosition,