Skip to content

refactor: using C++11/14/17 features in dash specifict code - #5190

Merged
PastaPastaPasta merged 5 commits into
dashpay:developfrom
knst:cxx17-refac-3
Feb 19, 2023
Merged

refactor: using C++11/14/17 features in dash specifict code#5190
PastaPastaPasta merged 5 commits into
dashpay:developfrom
knst:cxx17-refac-3

Conversation

@knst

@knstknst commented Feb 8, 2023

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

This refactoring helps to make code more specific and clear.
There's using syntax feature from modern C++ such as 'enum class', structure bindings in loops, declaration variables inside if/switch statements, etc.

What was done?

This PR is based on @PastaPastaPasta 's PR #4472

There excluded changes related to using std::optional. Let's decide firstly about Result class: #5109

How Has This Been Tested?

Run unit/functional tests

Breaking Changes

No breaking changes

Checklist:

  • I have performed a self-review of my own code
  • I have assigned this pull request to a milestone

@knstknst mentioned this pull request Feb 8, 2023
@knstknst added this to the 19 milestone Feb 8, 2023
Comment threadsrc/evo/simplifiedmns.cpp Outdated
@PastaPastaPasta

Copy link
Copy Markdown
Member

(Also, please address CI failures)

@knst
knst marked this pull request as draft February 12, 2023 15:20
Co-authored-by: Pasta <pasta@dashboost.org
@knst

knst commented Feb 13, 2023

Copy link
Copy Markdown
CollaboratorAuthor
commit 417612644014c26d2c679eaeabb5af6dba448643
fix: return size_t without conversion to int

This changes are dropped, because confusion about size_t type in pushKV in univalue.h

Should be done after this backport:
Merge bitcoin#25611: univalue: Avoid brittle, narrowing and verbose integral type confusions

@knst
knst marked this pull request as ready for review February 14, 2023 05:48
@knst
knst requested a review from UdjinM6February 14, 2023 05:48

@UdjinM6UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

one suggestion, LGTM otherwise

Comment threadsrc/coinjoin/client.cpp Outdated

@UdjinM6UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK

@PastaPastaPastaPastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK for squash merge

@PastaPastaPasta
PastaPastaPasta merged commit 7681d63 into dashpay:developFeb 19, 2023
Sign up for freeto 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.

3 participants

@knst@PastaPastaPasta@UdjinM6