-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Qt] minor optimisations in peertablemodel #6317
Conversation
Diapolo
commented
Jun 21, 2015
- remove an unneeded include of net.h in peertablemodel.cpp
- add const after size() in PeerTablePriv
- remove 2x unneeded else in functions
- replace a (int) typecast by (QVariant) to use Qt style
Can you please remove { and } in a one-line ifs? |
@paveljanik @laanwj most of the time prefers { and } even for one-line ifs :). |
I agree with @paveljanik: most one line ifs are without brackets and i think this is according to our code style / clang style. |
@paveljanik @jonasschnelli Changed into one-line ifs :). |
@paveljanik @jonasschnelli @laanwj Do I get some ACKs, this should be easy to merge :). |
utACK |
utACK |
ACK |
@laanwj Can you please merge this trivial stuff :)? |
- remove an unneeded include of net.h in peertablemodel.cpp - add const after size() in PeerTablePriv - remove 2x unneeded else in functions - replace a (int) typecast by (QVariant) to use Qt style - remove unneeded include of peertablemodel.h from rpcconsole.cpp
@laanwj Ping once more. |
@jonasschnelli IMHO, if we still support the GUI, we need another person wo is willing or able to merge GUI pulls... it's currently frustrating! |
It seems cosmetic-only changes to the source code usually get rejected? (#6511) Still, utACK from me. |
Zcash: Also include AC_HELP_STRING -> AS_HELP_STRING (ostensibly from merging bitcoin/bitcoin#6317 but the change only occurs in the merge commit ca5e2a1, not the PR itself).