More delinting

This commit is contained in:
bgbsww
2023-12-25 17:44:06 -05:00
parent 35b853deb5
commit 00a9b3261e
4 changed files with 10 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
namespace PartTestHelpers
{
double getVolume(TopoDS_Shape shape)
double getVolume(const TopoDS_Shape shape)
{
GProp_GProps prop;
BRepGProp::VolumeProperties(shape, prop);
@@ -15,7 +15,7 @@ void PartTestHelperClass::createTestDoc()
{
_docName = App::GetApplication().getUniqueDocumentName("test");
_doc = App::GetApplication().newDocument(_docName.c_str(), "testUser");
std::array<Base::Vector3d, 6> box_origins = {
std::array<Base::Vector3d, 6> box_origins = { // NOLINT magic number
Base::Vector3d(), // First box at 0,0,0
Base::Vector3d(0, 1, 0), // Overlap with first box
Base::Vector3d(0, 3, 0), // Don't Overlap with first box
@@ -24,7 +24,7 @@ void PartTestHelperClass::createTestDoc()
// For the Just Inside Of Touching case, go enough that we exceed precision rounding
Base::Vector3d(0, 2 - minimalDistance, 0)};
for (unsigned i = 0; i < _boxes.size(); i++) {
for (int i = 0; i < _boxes.size(); i++) {
auto box = _boxes[i] = static_cast<Part::Box*>(_doc->addObject("Part::Box"));
box->Length.setValue(1);
box->Width.setValue(2);