Commit 89f744d
pack of small cleanup fixes / optimizations (#2334)
* remove vector, extra loop in cleanup function
This commit removes 2 loops and a vector which I don't believe are necessary in
CMasternode::FlagGovernanceItemsAsDirty. I could be missing something, but
can't think of any good reason why this was implemented this way.
* use range operator to range over vectors
* remove deprecated wire message types
* mn: simplify govobj map mgmt a bit
* remove extra semicolons
* invert if/else condition and drop else
* remove if/else logic from Qt
This is the entire purpose of the Get<X>String methods on MNP class.
* Revert "remove deprecated wire message types"
This reverts commit 9de88a3.
* Revert "remove if/else logic from Qt"
This reverts commit c0f43c9.1 parent 9603c52 commit 89f744d
File tree
5 files changed
+19
-38
lines changed- src
- qt
5 files changed
+19
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | | - | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
| |||
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
371 | | - | |
372 | | - | |
| 370 | + | |
| 371 | + | |
373 | 372 | | |
374 | 373 | | |
375 | 374 | | |
| |||
1018 | 1017 | | |
1019 | 1018 | | |
1020 | 1019 | | |
1021 | | - | |
1022 | | - | |
| 1020 | + | |
| 1021 | + | |
1023 | 1022 | | |
1024 | 1023 | | |
1025 | 1024 | | |
| |||
1296 | 1295 | | |
1297 | 1296 | | |
1298 | 1297 | | |
1299 | | - | |
1300 | | - | |
| 1298 | + | |
1301 | 1299 | | |
1302 | 1300 | | |
1303 | 1301 | | |
1304 | 1302 | | |
1305 | 1303 | | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
| 1306 | + | |
| 1307 | + | |
1312 | 1308 | | |
1313 | 1309 | | |
1314 | 1310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
1001 | 1000 | | |
1002 | 1001 | | |
1003 | 1002 | | |
1004 | 1003 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
| 1004 | + | |
| 1005 | + | |
1010 | 1006 | | |
1011 | 1007 | | |
1012 | 1008 | | |
| |||
1017 | 1013 | | |
1018 | 1014 | | |
1019 | 1015 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
| 1016 | + | |
| 1017 | + | |
1030 | 1018 | | |
1031 | 1019 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 477 | + | |
481 | 478 | | |
482 | 479 | | |
483 | 480 | | |
| |||
0 commit comments