gui: Don't access static members from class instances #13768

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:dont-access-static-members-from-class-instances changing 4 files +5 −5
  1. practicalswift commented at 2:52 PM on July 26, 2018: contributor

    Don't access static members from class instances.

    Be explicit about the fact that the members we're accessing are static.

  2. Don't access static members from class instances 54e5ebc463
  3. practicalswift commented at 2:59 PM on July 26, 2018: contributor

    After posting this PR I see that the Qt documentation has an example with app.exec();. Am I mistaken here? :-)

  4. MarcoFalke renamed this:
    Don't access static members from class instances
    gui: Don't access static members from class instances
    on Jul 26, 2018
  5. MarcoFalke added the label GUI on Jul 26, 2018
  6. MarcoFalke added the label Refactoring on Jul 26, 2018
  7. DrahtBot commented at 4:56 PM on July 26, 2018: member

    <!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:

    • #13787 (Test for #13426 by ken2812221)
    • #13426 ([bugfix] Fix encoding issue for Windows by ken2812221)
    • #11625 (WIP: Add BitcoinApplication & RPCConsole tests by ryanofsky)

    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.

  8. Empact commented at 10:16 PM on July 26, 2018: member

    I'm not sure this is an improvement...

  9. practicalswift commented at 10:26 PM on July 26, 2018: contributor

    @Empact That could that could very well be the case, but please help me understand why you think so :-)

  10. sipa commented at 10:49 PM on July 26, 2018: member

    I believe this is generally a good idea.

  11. promag commented at 1:57 PM on July 27, 2018: member

    Concept ACK.

    Are these the only cases?

  12. practicalswift commented at 4:43 PM on July 27, 2018: contributor

    @promag Yes AFAIK :-)

  13. laanwj commented at 11:17 AM on July 30, 2018: member

    I'm not sure this is an improvement...

    Me neither TBH. Let's not make changes just to make changes!

    Please illustrate how this avoids bugs, otherwise I don't see the point. Currently it's possible to change the class and the calls will go to exactly the right class.

  14. practicalswift commented at 12:08 PM on July 30, 2018: contributor

    Closing due to lack of consensus ACK :-)

  15. practicalswift closed this on Jul 30, 2018

  16. practicalswift deleted the branch on Apr 10, 2021
  17. DrahtBot locked this on Aug 16, 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-04-16 15:15 UTC

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