summaryrefslogtreecommitdiff
path: root/src/gnucash.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:27:21 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commitd8498372037a4d0c272547ae48046b2182bcd4b1 (patch)
treeea3f228c5b6b20d71456e47a418e383669925d5f /src/gnucash.cc
parenta71d48881e538630aa1d147d58365da84e6db91f (diff)
downloadfork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.gz
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.bz2
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.zip
Major restructuring of the value_t class.
Diffstat (limited to 'src/gnucash.cc')
-rw-r--r--src/gnucash.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gnucash.cc b/src/gnucash.cc
index a09d06fa..8fa5a524 100644
--- a/src/gnucash.cc
+++ b/src/gnucash.cc
@@ -93,8 +93,8 @@ void endElement(void *userData, const char *name)
assert(parser->curr_account);
if (parser->curr_account->parent == parser->master_account)
parser->curr_journal->add_account(parser->curr_account);
- parser->accounts_by_id.insert(accounts_pair(parser->curr_account_id,
- parser->curr_account));
+ parser->accounts_by_id.insert
+ (accounts_map::value_type(parser->curr_account_id, parser->curr_account));
parser->curr_account = NULL;
}
else if (std::strcmp(name, "gnc:commodity") == 0) {
@@ -230,8 +230,8 @@ void dataHandler(void *userData, const char *s, int len)
if (parser->curr_account)
parser->account_comms.insert
- (gnucash_parser_t::account_comm_pair(parser->curr_account,
- parser->curr_comm));
+ (gnucash_parser_t::account_comm_map::value_type
+ (parser->curr_account, parser->curr_comm));
else if (parser->curr_entry)
parser->entry_comm = parser->curr_comm;
break;
@@ -307,7 +307,7 @@ void dataHandler(void *userData, const char *s, int len)
break;
default:
- assert(0);
+ assert(false);
break;
}
}