refactor: call getDisplayUnit() once instead of three times #17221

pull JeremyCrookshank wants to merge 2 commits into bitcoin:master from JeremyCrookshank:sendcoincodereuse changing 1 files +4 −3
  1. JeremyCrookshank commented at 8:30 PM on October 22, 2019: contributor

    Noticed that getDisplayUnit() was being called 3 times but can be made more efficient if we store the value on the function once as a variable for reuse instead

  2. reuse a variable instead of function a1373922de
  3. fanquake added the label GUI on Oct 22, 2019
  4. fanquake added the label Refactoring on Oct 22, 2019
  5. promag commented at 8:35 PM on October 22, 2019: member
  6. removed word 9f285c5d95
  7. JeremyCrookshank closed this on Oct 22, 2019

  8. JeremyCrookshank deleted the branch on Oct 22, 2019
  9. DrahtBot locked this on Dec 16, 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-21 18:14 UTC

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