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

Use override keyword for overriden class member functions #1644

Merged
merged 2 commits into from
Feb 15, 2018

Conversation

gladcow
Copy link

@gladcow gladcow commented Sep 20, 2017

This helps to prevent errors when you change base class interface and descedant member function is not called after that.

Also, I've made the function GetHDChain in keystore.h virtual and the function with the same name in the wallet\crypter.h overriden, I think it is more correct if we have functions with the same name and signature in ancestor and descendant classes.

@UdjinM6
Copy link

UdjinM6 commented Sep 20, 2017

Pinging @codablock - will this cause conflicts in bitcoin backports you are doing?

@codablock
Copy link

Yeah, this touches quite a lot of methods. I'll stumble on this when doing a rebase after this is merged...probably in really many of my commit. I would suggest to leave this PR open until we have catched up with Bitcoin

@UdjinM6
Copy link

UdjinM6 commented Sep 20, 2017

ok, postponing till later then

@willwray
Copy link

Agree to hold off on touching bitcoin code for now, for this and other C++11 updates.

src/governance-exceptions.h is Dash-specific so it can be changed, but it also has a deprecated throw() dynamic exception specification that I was looking at changing...

Note that the src/drafted files are not used and will be removed at some point.
So I'd leave src/drafted/governance-classes.h

@codablock
Copy link

As we have catched up with Bitcoin 0.14 now, we can probably finish this one. I'll handle merge conflicts for 0.15 later on-the-fly while I backport the PRs.

@UdjinM6
Copy link

UdjinM6 commented Feb 6, 2018

Needs rebase

@UdjinM6 UdjinM6 added this to the 12.3 milestone Feb 6, 2018
@UdjinM6 UdjinM6 changed the base branch from v0.12.2.x to develop February 6, 2018 07:45
@gladcow gladcow changed the title Use override keyword for overriden class member functions [WIP] Use override keyword for overriden class member functions Feb 12, 2018
@gladcow gladcow changed the title [WIP] Use override keyword for overriden class member functions Use override keyword for overriden class member functions Feb 13, 2018
@gladcow gladcow changed the title Use override keyword for overriden class member functions [WIP] Use override keyword for overriden class member functions Feb 13, 2018
@gladcow gladcow changed the title [WIP] Use override keyword for overriden class member functions Use override keyword for overriden class member functions Feb 13, 2018
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 2ea6f7d into dashpay:develop Feb 15, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…1644)

* Use `override` keyword for all overriden functions

* more override
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 28, 2019
…1644)

* Use `override` keyword for all overriden functions

* more override
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Mar 2, 2019
…1644)

* Use `override` keyword for all overriden functions

* more override
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