Coding - Apply more flags from Clang-tidy (#977)

- Refactor boolean expressions and improve code readability across multiple files
- Simplified boolean expressions by removing unnecessary comparisons to true/false.
- Replaced explicit boolean checks with direct variable usage 

Used flags:
readability-static-accessed-through-instance
readability-simplify-boolean-expr
performance-for-range-copy
performance-move-const-arg
misc-unused-parameters
misc-redundant-expression
This commit is contained in:
Pasukhin Dmitry
2026-01-03 12:18:59 +00:00
committed by GitHub
parent 825b0bd782
commit 6c24544fe1
582 changed files with 1535 additions and 3246 deletions

View File

@@ -540,9 +540,7 @@ bool BRepTools::Compare(const TopoDS_Vertex& V1, const TopoDS_Vertex& V2)
bool BRepTools::Compare(const TopoDS_Edge& E1, const TopoDS_Edge& E2)
{
if (E1.IsSame(E2))
return true;
return false;
return E1.IsSame(E2);
}
//=================================================================================================

View File

@@ -85,10 +85,7 @@ BRepTools_ShapeSet::BRepTools_ShapeSet(const BRep_Builder& theBuilder,
//=================================================================================================
BRepTools_ShapeSet::~BRepTools_ShapeSet()
{
//
}
BRepTools_ShapeSet::~BRepTools_ShapeSet() = default;
//=================================================================================================