Skip to content

Commit

Permalink
Merge pull request #879 from Geode-solutions/fix/less-no-lint
Browse files Browse the repository at this point in the history
fix(default): add more default destructors
  • Loading branch information
panquez authored Jan 3, 2024
2 parents 58baad8 + 6ea5d98 commit 40b4f90
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
8 changes: 2 additions & 6 deletions src/geode/basic/cell_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ namespace geode
};

template < index_t dimension >
CellArray< dimension >::CellArray() // NOLINT
{
}
CellArray< dimension >::CellArray() = default;

template < index_t dimension >
CellArray< dimension >::CellArray(
Expand All @@ -140,9 +138,7 @@ namespace geode
-> CellArray& = default;

template < index_t dimension >
CellArray< dimension >::~CellArray() // NOLINT
{
}
CellArray< dimension >::~CellArray() = default;

template < index_t dimension >
index_t CellArray< dimension >::nb_cells() const
Expand Down
2 changes: 1 addition & 1 deletion src/geode/geometry/bounding_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace
namespace geode
{
template < index_t dimension >
BoundingBox< dimension >::BoundingBox() // NOLINT
BoundingBox< dimension >::BoundingBox()
{
for( const auto i : LRange{ dimension } )
{
Expand Down
4 changes: 1 addition & 3 deletions src/geode/mesh/core/surface_edges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ namespace geode
}

template < index_t dimension >
SurfaceEdges< dimension >::~SurfaceEdges() // NOLINT
{
}
SurfaceEdges< dimension >::~SurfaceEdges() = default;

template < index_t dimension >
index_t SurfaceEdges< dimension >::find_or_create_edge(
Expand Down
16 changes: 4 additions & 12 deletions src/geode/mesh/helpers/detail/component_identifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ namespace geode
{
}

GraphIdentifier::~GraphIdentifier() // NOLINT
{
}
GraphIdentifier::~GraphIdentifier() = default;

index_t GraphIdentifier::identify_vertices()
{
Expand Down Expand Up @@ -227,9 +225,7 @@ namespace geode
}

template < index_t dimension >
EdgedCurveIdentifier< dimension >::~EdgedCurveIdentifier() // NOLINT
{
}
EdgedCurveIdentifier< dimension >::~EdgedCurveIdentifier() = default;

template < index_t dimension >
index_t EdgedCurveIdentifier< dimension >::identify_edges()
Expand Down Expand Up @@ -282,9 +278,7 @@ namespace geode
}

template < index_t dimension >
SurfaceIdentifier< dimension >::~SurfaceIdentifier() // NOLINT
{
}
SurfaceIdentifier< dimension >::~SurfaceIdentifier() = default;

template < index_t dimension >
index_t SurfaceIdentifier< dimension >::identify_polygons()
Expand Down Expand Up @@ -330,9 +324,7 @@ namespace geode
{
}

SolidIdentifier::~SolidIdentifier() // NOLINT
{
}
SolidIdentifier::~SolidIdentifier() = default;

index_t SolidIdentifier::identify_polyhedra()
{
Expand Down

0 comments on commit 40b4f90

Please sign in to comment.