From 032afa5657bd600476cde256b6d7db84fde7d038 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 29 Aug 2004 03:23:55 -0400 Subject: a bit of a reorg; still much more to go --- journal.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'journal.cc') diff --git a/journal.cc b/journal.cc index 5922cd34..30d258f1 100644 --- a/journal.cc +++ b/journal.cc @@ -139,8 +139,12 @@ account_t * account_t::find_account(const std::string& name, if (i == accounts.end()) { if (! auto_create) return NULL; + account = new account_t(this, first); - accounts.insert(accounts_pair(first, account)); + + std::pair result + = accounts.insert(accounts_pair(first, account)); + assert(result.second); } else { account = (*i).second; } -- cgit v1.2.3