Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virtual destructor to TransactionItem #1648

Conversation

inknos
Copy link
Contributor

@inknos inknos commented Mar 26, 2024

No description provided.

@jan-kolarik
Copy link
Member

As users can access the TransactionItem via upcast, I think we also need to add it to the TransactionItemBase.

@inknos inknos force-pushed the add-virtual-destructor branch from 8e85574 to 17ea954 Compare March 27, 2024 15:05
@inknos
Copy link
Contributor Author

inknos commented Mar 27, 2024

As users can access the TransactionItem via upcast, I think we also need to add it to the TransactionItemBase.

I am getting a bit lost in the virtual c++ terms, but I guess providing only these two lines is now sufficient for upcasting.

@jan-kolarik jan-kolarik self-assigned this Mar 27, 2024
Copy link
Member

@jan-kolarik jan-kolarik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jan-kolarik jan-kolarik merged commit e4e9077 into rpm-software-management:dnf-4-master Mar 28, 2024
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants