Use MakeUnique to construct objects owned by unique_ptrs.
Rationale:
MakeUnique ensures exception safety in complex expressions.
MakeUnique gives a more concise statement of the construction.
tests: Use MakeUnique to construct objects owned by unique_ptrsb6718e373e
MarcoFalke added the label Docs on Sep 21, 2018
MarcoFalke added the label Tests on Sep 21, 2018
MarcoFalke
commented at 12:09 PM on September 21, 2018:
member
utACKb6718e373ed425fa2440ddd8f1b05c76b782dc2b
DrahtBot
commented at 12:16 PM on September 21, 2018:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
#14224 (Document intentional and unintentional unsigned integer overflows (wraparounds) using annotations by practicalswift)
#14010 (tests: Setup chain parameters (globalChainParams) when performing fuzzing initialization by practicalswift)
#9381 (Remove CWalletTx merging logic from AddToWallet by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC