Skip to content

Commit

Permalink
Add virtual destructor to TransactionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos authored and ppisar committed Apr 18, 2024
1 parent c91ed33 commit efb4877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libdnf/transaction/TransactionItem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ namespace libdnf {

class TransactionItemBase {
public:
virtual ~TransactionItemBase() = default;

ItemPtr getItem() const noexcept { return item; }
void setItem(ItemPtr value) { item = value; }

Expand Down Expand Up @@ -101,6 +103,7 @@ class TransactionItem : public TransactionItemBase {
explicit TransactionItem(Transaction *trans);

TransactionItem(SQLite3Ptr conn, int64_t transID);
virtual ~TransactionItem() = default;

int64_t getId() const noexcept { return id; }
void setId(int64_t value) { id = value; }
Expand Down

0 comments on commit efb4877

Please sign in to comment.