Skip to content

Commit

Permalink
Make destructors of base classes virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark committed Dec 19, 2024
1 parent 5ddab04 commit 34d640e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion libtiledbsoma/src/geometry/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ struct BasePoint {
, m(m) {
}

virtual ~BasePoint() = default;

double_t x;
double_t y;
std::optional<double_t> z;
std::optional<double_t> m;
};
} // namespace tiledbsoma::geometry

#endif // TILEDBSOMA_GEOMETRY_BASE_H
#endif // TILEDBSOMA_GEOMETRY_BASE_H
2 changes: 1 addition & 1 deletion libtiledbsoma/src/soma/soma_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class SOMAArray : public SOMAObject {
}

SOMAArray() = delete;
~SOMAArray() = default;
virtual ~SOMAArray() = default;

/**
* @brief Get URI of the SOMAArray.
Expand Down
2 changes: 1 addition & 1 deletion libtiledbsoma/src/soma/soma_collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SOMACollection : public SOMAGroup {
SOMACollection() = delete;
SOMACollection(const SOMACollection&) = default;
SOMACollection(SOMACollection&&) = default;
~SOMACollection() = default;
virtual ~SOMACollection() = default;

using iterator =
typename std::map<std::string, std::shared_ptr<SOMAObject>>::iterator;
Expand Down
2 changes: 1 addition & 1 deletion libtiledbsoma/src/soma/soma_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SOMAGroup : public SOMAObject {
SOMAGroup() = delete;
SOMAGroup(const SOMAGroup&) = default;
SOMAGroup(SOMAGroup&&) = default;
~SOMAGroup() = default;
virtual ~SOMAGroup() = default;

/**
* Open the SOMAGroup object.
Expand Down

0 comments on commit 34d640e

Please sign in to comment.