mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-06 21:07:36 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -85,10 +85,7 @@ BRepTools_ShapeSet::BRepTools_ShapeSet(const BRep_Builder& theBuilder,
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
BRepTools_ShapeSet::~BRepTools_ShapeSet()
|
||||
{
|
||||
//
|
||||
}
|
||||
BRepTools_ShapeSet::~BRepTools_ShapeSet() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user