Skip to content

Add virtual destructor to classes #1910

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

Merged
merged 1 commit into from
Jun 12, 2016

Conversation

c1728p9
Copy link
Contributor

@c1728p9 c1728p9 commented Jun 12, 2016

Add a virtual destructor to classes which have a virtual lock and
unlock. Remove the virtual qualifier from functions in
InterruptManager since this class cannot be extended.

@c1728p9 c1728p9 force-pushed the add_virtual_destructors branch from a526872 to 614d3fc Compare June 12, 2016 17:15
@sg-
Copy link
Contributor

sg- commented Jun 12, 2016

@mbed-bot: TEST

HOST_OSES=windows
BUILD_TOOLCHAINS=ALL
TARGETS=LPC1768,K64F

@@ -122,6 +122,10 @@ class AnalogOut {
}
#endif

virtual ~AnalogOut() {
// Do nothing
Copy link
Contributor

Choose a reason for hiding this comment

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

this comment do nothing is redundant in all of them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to indicate that the code was not forgotten accidentally. Want me to remove it?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes

@mbed-bot
Copy link

[Build 469]
FAILURE: Something went wrong when building and testing.

Add a virtual destructor to classes which have a virtual lock and
unlock.  Remove the virtual qualifier from functions in
InterruptManager since this class cannot be extended.
@c1728p9 c1728p9 force-pushed the add_virtual_destructors branch from 614d3fc to 58d15f3 Compare June 12, 2016 20:33
@sg- sg- merged commit f3c125f into ARMmbed:master Jun 12, 2016
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.

4 participants