mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
refactor: use C++11 default initializers
This commit is contained in:
@@ -2450,9 +2450,9 @@ struct Tracker
|
||||
//! Points to the original object (possibly itself) we moved/copied from
|
||||
const Tracker* origin;
|
||||
//! How many copies where involved between the original object and this one (moves are not counted)
|
||||
int copies;
|
||||
int copies{0};
|
||||
|
||||
Tracker() noexcept : origin(this), copies(0) {}
|
||||
Tracker() noexcept : origin(this) {}
|
||||
Tracker(const Tracker& t) noexcept : origin(t.origin), copies(t.copies + 1) {}
|
||||
Tracker(Tracker&& t) noexcept : origin(t.origin), copies(t.copies) {}
|
||||
Tracker& operator=(const Tracker& t) noexcept
|
||||
|
||||
Reference in New Issue
Block a user