Remove unnecessary G_TRANSLATION_FUN nullptr assignment #14087

pull promag wants to merge 1 commits into bitcoin:master from promag:2018-08-clean-13961 changing 6 files +6 −6
  1. promag commented at 10:33 PM on August 27, 2018: member
  2. Remove unnecessary G_TRANSLATION_FUN nullptr assignment 508b65c74b
  3. practicalswift commented at 10:41 PM on August 27, 2018: contributor

    utACK 508b65c74b9515a62e8ee55bc4c28cb3684b0263

  4. fanquake added the label Refactoring on Aug 27, 2018
  5. ken2812221 commented at 12:52 AM on August 28, 2018: contributor

    Does this improve something?

  6. promag commented at 12:54 AM on August 28, 2018: member

    No.

  7. Empact commented at 1:00 AM on August 28, 2018: member

    utACK 508b65c less code is bettter code

  8. laanwj commented at 10:46 AM on August 28, 2018: member

    TBH I like the explicit construction more, this change seems completely unnecessary

  9. laanwj closed this on Aug 28, 2018

  10. promag commented at 1:47 PM on August 28, 2018: member

    @laanwj this was initially a pointer.

  11. laanwj reopened this on Aug 28, 2018

  12. laanwj commented at 1:51 PM on August 28, 2018: member

    oh I see, it's not a pointer, ok fine, yes then it's not sensible to assign nullptr

    was just getting a bit annoyed with getting a "clean up" PR after every PR, sorry

  13. MarcoFalke commented at 2:07 PM on August 28, 2018: member

    Tend to agree with @laanwj. According to https://en.cppreference.com/w/cpp/utility/functional/function/function both variations "1-2) Creates an empty function." If one variant is preferable, it should be mentioned in the developer notes.

  14. promag commented at 6:35 PM on August 28, 2018: member

    I prefer 1) but I don't care that much.

  15. promag closed this on Aug 28, 2018

  16. promag deleted the branch on Sep 2, 2018
  17. MarcoFalke locked this on Sep 8, 2021

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-04-22 00:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me