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

refactor: use push_back in TaprootBuilder::Add(), rm NOLINTNEXTLINE and comment #29202

Closed

Conversation

jonatack
Copy link
Contributor

@jonatack jonatack commented Jan 8, 2024

Using emplace_back and disabling the modernize-use-emplace Tidy CI check seems pointless here, as IIUC it doesn't avoid a temporary object compared to just using push_back. See #28583 for more context.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 8, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

…nd comment

`emplace_back` seems pointless here, as it doesn't avoid a temporary object
compared to `push_back`
@jonatack jonatack changed the title Remove no-longer-needed NOLINTNEXTLINE since C++20 upgrade refactor: use push_back in TaprootBuilder::Add(), rm NOLINTNEXTLINE and comment Jan 8, 2024
@jonatack jonatack force-pushed the 2024-01-rm-unneeded-NOLINTNEXTLINE branch from 6c4336a to 9d4893b Compare January 8, 2024 03:51
@jonatack jonatack closed this Jan 8, 2024
@jonatack jonatack deleted the 2024-01-rm-unneeded-NOLINTNEXTLINE branch January 12, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants