summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-01-01 12:03:54 -0800
committerGitHub <noreply@github.com>2018-01-01 12:03:54 -0800
commita44947b87026af35a365bd1d100b24a453d351f4 (patch)
tree85b47e6b7e73e27382533170321db417ce09fffa /src/account.h
parent2767ca07d48c48b43ba1ae7b7f62d8320a2bb9e9 (diff)
parenta952e21b9f9382249b7cc6fb4a039703fe9fd391 (diff)
downloadfork-ledger-a44947b87026af35a365bd1d100b24a453d351f4.tar.gz
fork-ledger-a44947b87026af35a365bd1d100b24a453d351f4.tar.bz2
fork-ledger-a44947b87026af35a365bd1d100b24a453d351f4.zip
Merge pull request #505 from mbudde/init-field
Initialize field in constructor
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/account.h b/src/account.h
index e8f28596..1b97463d 100644
--- a/src/account.h
+++ b/src/account.h
@@ -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");
}