Merge pull request #505 from mbudde/init-field
Initialize field in constructor
This commit is contained in:
commit
a44947b870
1 changed files with 5 additions and 2 deletions
|
|
@ -205,7 +205,9 @@ public:
|
|||
posts_cleared_count(0),
|
||||
posts_last_7_count(0),
|
||||
posts_last_30_count(0),
|
||||
posts_this_month_count(0) {
|
||||
posts_this_month_count(0),
|
||||
latest_checkout_cleared(false)
|
||||
{
|
||||
TRACE_CTOR(account_t::xdata_t::details_t, "");
|
||||
}
|
||||
// A copy copies nothing
|
||||
|
|
@ -218,7 +220,8 @@ public:
|
|||
posts_cleared_count(0),
|
||||
posts_last_7_count(0),
|
||||
posts_last_30_count(0),
|
||||
posts_this_month_count(0)
|
||||
posts_this_month_count(0),
|
||||
latest_checkout_cleared(false)
|
||||
{
|
||||
TRACE_CTOR(account_t::xdata_t::details_t, "copy");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue