Skip to content

Conversation

@Diapolo
Copy link

@Diapolo Diapolo commented Jul 9, 2012

  • cleanup optionsmodel before adding new proxy options
  • place SOCKS version stuff below proxy port (IP, Port, SOCKS version)
  • simplyfy some parts of the code (e.g. don't check IP and port, as this
    is done in optionsdialog anyway, remove unneeded {} in switch/case)
  • small comsetic changed in the header for better readability

This is what I intend to do with the proxy options (not included here):
planned proxy options

@laanwj
Copy link
Member

laanwj commented Jul 10, 2012

ACK

- cleanup optionsmodel before adding new proxy options
- place SOCKS version stuff below proxy port (IP, Port, SOCKS version)
- simplyfy some parts of the code (e.g. don't check IP and port, as this
  is done in optionsdialog anyway, remove unneeded {} in switch/case)
- small cosmetic changes in the header for better readability
@Diapolo
Copy link
Author

Diapolo commented Jul 12, 2012

Rebased without further code changes, because I based #1589 on this!

laanwj added a commit that referenced this pull request Jul 12, 2012
@laanwj laanwj merged commit 4a7d53e into bitcoin:master Jul 12, 2012
nifgraup pushed a commit to nifgraup/auroracoin-project that referenced this pull request Mar 30, 2014
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
…1572)

* Remove un-needed #includes (what is the policy?)

Data was duplicated in masternode_info_t and CMasternode classes:

* CMasternode is changed to inherit from masternode_info_t
  so the data members are inherited rather than repeated
 (also inherits unrepeated nTimeLastPing and fInfoValid members;
  this slight intrusiveness made up for in simplicity).

* Use in-class member initializers (C++11) for defaults,
  so only non-default initializers are required in the lists.
  Allows to shorten repetitous constructor initializer lists.
  This makes checking for uninitialized data simpler.

* Default constructors are defined as "= default;" if possible.

* masternode_info_t is changed to behave like an aggregate
 (but requires over-complicated constructors until c++14).
  There are pros and cons here - aggregate initialization
  is convenient but implicit).

* Removed user-defined swap functions.
  They appear to only be used in operator= definitions,
  using the copy-in,swap-and-return idiom:

* Default operator=, where possible.

* Move in class `friend bool operator==` out-of-class.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants