Merge pull request #505 from mbudde/init-field

Initialize field in constructor
This commit is contained in:
John Wiegley 2018-01-01 12:03:54 -08:00 committed by GitHub
commit a44947b870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}