dash/src/masternode
UdjinM6 9861bc74d6
fix: should avoid implicit conversions in pushKV params (#5719)
## Issue being fixed or feature implemented
Should fix compilation errors like
```
masternode/meta.cpp:43:9: error: call to member function 'pushKV' is ambiguous
    ret.pushKV("lastOutboundAttemptElapsed", now - lastOutboundAttempt);
    ^~
masternode/meta.cpp:45:9: error: call to member function 'pushKV' is ambiguous
    ret.pushKV("lastOutboundSuccessElapsed", now - lastOutboundSuccess);
    ^~
```
on FreeBSD + clang-15

kudos to @MrDefacto for finding the issue and testing the fix


## What was done?
Specify `now` variable type explicitly instead of relying on `auto`


## How Has This Been Tested?
MrDefacto confirmed it compiles with no issues on FreeBSD now

## Breaking Changes
n/a

## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository
code-owners and collaborators only)_
2023-11-21 07:53:55 -06:00
..
meta.cpp fix: should avoid implicit conversions in pushKV params (#5719) 2023-11-21 07:53:55 -06:00
meta.h refactor: decouple db hooks from CFlatDB-based C*Manager objects, migrate to *Store structs (#5555) 2023-09-24 09:50:21 -05:00
node.cpp merge bitcoin#21387: Refactor sock to add I2P fuzz and unit tests 2023-07-24 20:45:49 +03:00
node.h fix: Resolve mainnet v19 fork issues (#5403) 2023-06-04 23:45:56 +03:00
payments.cpp fix: some fixes for block payee validation and corresponding tests (#5684) 2023-11-13 10:02:52 -06:00
payments.h fix: some fixes for block payee validation and corresponding tests (#5684) 2023-11-13 10:02:52 -06:00
sync.cpp fix: Avoid using GetAdjustedTime() where adjusted time is not really needed or can be harmful (#5631) 2023-10-23 10:39:39 -05:00
sync.h refactor: governance constification and deglobalization (#5572) 2023-09-10 14:05:49 -05:00
utils.cpp fix: a couple of fixes for the way mnauth and probe nodes work (#5660) 2023-11-03 10:34:40 -05:00
utils.h refactor: subsume CoinJoin objects under CJContext, deglobalize coinJoin{ClientQueueManager,Server} (#5337) 2023-09-13 12:52:38 -05:00