rpcwallet: Replace boost::optional<T>::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
  1. MarcoFalke commented at 2:01 PM on May 11, 2020: member

    Closes #18943

  2. 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{}
    fa182a8794
  3. 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.
    fa1f840596
  4. MarcoFalke added the label Refactoring on May 11, 2020
  5. MarcoFalke added the label Wallet on May 11, 2020
  6. MarcoFalke added this to the milestone 0.20.1 on May 11, 2020
  7. MarcoFalke removed this from the milestone 0.20.1 on May 11, 2020
  8. MarcoFalke added this to the milestone 0.20.1 on May 11, 2020
  9. MarcoFalke removed this from the milestone 0.20.1 on May 11, 2020
  10. MarcoFalke added this to the milestone 0.21.0 on May 11, 2020
  11. ryanofsky approved
  12. ryanofsky commented at 2:59 PM on May 11, 2020: contributor

    Code review ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5 and thanks for using a standalone commit for the fix

  13. DrahtBot commented at 6:06 PM on May 11, 2020: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    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.

  14. promag commented at 6:26 PM on May 11, 2020: member

    Code review ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5.

  15. DrahtBot cross-referenced this on May 11, 2020 from issue Allow simple multiwallet rpc calls by jonasschnelli
  16. DrahtBot cross-referenced this on May 11, 2020 from issue rpc: remove deprecated CRPCCommand constructor by MarcoFalke
  17. DrahtBot cross-referenced this on May 11, 2020 from issue Use shared pointers only in validation interface by bvbfan
  18. hebasto approved
  19. hebasto commented at 2:32 PM on May 14, 2020: member

    ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5, tested on Linux Mint 19.3.

  20. laanwj commented at 5:25 PM on May 14, 2020: member

    ACK fa1f840596554ed264d11ee3b3643bf99eb57eb5

  21. laanwj merged this on May 14, 2020
  22. laanwj closed this on May 14, 2020

  23. MarcoFalke deleted the branch on May 14, 2020
  24. sidhujag referenced this in commit 81b853d60d on May 17, 2020
  25. deadalnix referenced this in commit 430c7599fc on Jan 29, 2021
  26. bitcoin 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: 2026-05-20 06:54 UTC