rpcwallet: Replace boost::optional::emplace with simple assignment of T{} #18946
pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:2005-rpcWalletOptional changing 1 files +17 −17-
MarcoFalke commented at 2:01 pm on May 11, 2020: memberCloses #18943
-
rpcwallet: Replace boost::optional<T>::emplace with simple assignment of T{}
Optional::emplace() was only added in boost 1.56, see https://github.com/boostorg/optional/commit/2e583aaf30964afd66c1284aa71d0d8b42fa440d To simply work around https://github.com/bitcoin/bitcoin/issues/18943, replace it with assignment of T{}
-
rpcwallet: Replace pwallet-> with wallet.
pwallet is never null everywhere where it is dereferenced, so simply replace it with a reference, which can not be null by definition.
-
MarcoFalke added the label Refactoring on May 11, 2020
-
MarcoFalke added the label Wallet on May 11, 2020
-
MarcoFalke added this to the milestone 0.20.1 on May 11, 2020
-
MarcoFalke removed this from the milestone 0.20.1 on May 11, 2020
-
MarcoFalke added this to the milestone 0.20.1 on May 11, 2020
-
MarcoFalke removed this from the milestone 0.20.1 on May 11, 2020
-
MarcoFalke added this to the milestone 0.21.0 on May 11, 2020
-
ryanofsky approved
-
ryanofsky commented at 2:59 pm on May 11, 2020: memberCode review ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5 and thanks for using a standalone commit for the fix
-
DrahtBot commented at 6:06 pm on May 11, 2020: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #18734 (Allow simple multiwallet rpc calls by jonasschnelli)
- #18531 (rpc: Assert that RPCArg names are equal to CRPCCommand ones by MarcoFalke)
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.
-
promag commented at 6:26 pm on May 11, 2020: memberCode review ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5.
-
hebasto approved
-
hebasto commented at 2:32 pm on May 14, 2020: memberACK fa1f840596554ed264d11ee3b3643bf99eb57eb5, tested on Linux Mint 19.3.
-
laanwj commented at 5:25 pm on May 14, 2020: memberACK fa1f840596554ed264d11ee3b3643bf99eb57eb5
-
laanwj merged this on May 14, 2020
-
laanwj closed this on May 14, 2020
-
MarcoFalke deleted the branch on May 14, 2020
-
sidhujag referenced this in commit 81b853d60d on May 17, 2020
-
deadalnix referenced this in commit 430c7599fc on Jan 29, 2021
-
DrahtBot locked this on Feb 15, 2022
github-metadata-mirror
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: 2024-12-18 15:12 UTC
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: 2024-12-18 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me