diff options
| author | MarcoFalke <[email protected]> | 2018-09-19 13:26:43 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-09-19 13:26:47 -0400 |
| commit | 920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0 (patch) | |
| tree | adb2d00ea06ac90008d158124f816d7f54d5d35c /src/interfaces/node.cpp | |
| parent | Merge #14214: convert C-style (void) parameter lists to C++ style () (diff) | |
| parent | tests: Use MakeUnique to construct objects owned by unique_ptrs (diff) | |
| download | discoin-920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0.tar.xz discoin-920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0.zip | |
Merge #14287: tests: Use MakeUnique to construct objects owned by unique_ptrs
b6718e373e tests: Use MakeUnique to construct objects owned by unique_ptrs (practicalswift)
Pull request description:
A subset of #14211 ("Use MakeUnique to construct objects owned by unique_ptrs") as suggested by @MarcoFalke in https://github.com/bitcoin/bitcoin/pull/14211#issuecomment-423324019.
Use `MakeUnique` to construct objects owned by `unique_ptr`s.
Rationale:
* `MakeUnique` ensures exception safety in complex expressions.
* `MakeUnique` gives a more concise statement of the construction.
Tree-SHA512: 1228ae6ce7beb178d79142c4e936b728178ccaa8aa35c6d8feeb33d1a667abfdd010c59996a9d833594611e913877ce5794e75953d11d9b1fdbac04aa491d9cf
Diffstat (limited to 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions