From b84f676946941df6f7e8476d77d1db0cbe7736c5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Apr 2007 02:14:53 +0000 Subject: Did some optimization and memory cleanup --- gnucash.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gnucash.h') diff --git a/gnucash.h b/gnucash.h index 4958f6df..520ad0d3 100644 --- a/gnucash.h +++ b/gnucash.h @@ -23,8 +23,8 @@ namespace ledger { struct gnucash_parser_t : public parser_t { - typedef std::map accounts_map; - typedef std::pair accounts_pair; + typedef std::map accounts_map; + typedef std::pair accounts_pair; typedef std::map account_comm_map; typedef std::pair account_comm_pair; @@ -32,7 +32,7 @@ struct gnucash_parser_t : public parser_t journal_t * curr_journal; account_t * master_account; account_t * curr_account; - std::string curr_account_id; + string curr_account_id; entry_t * curr_entry; commodity_t * entry_comm; commodity_t * curr_comm; @@ -42,12 +42,12 @@ struct gnucash_parser_t : public parser_t accounts_map accounts_by_id; account_comm_map account_comms; unsigned int count; - std::string have_error; + string have_error; std::istream * instreamp; unsigned int offset; XML_Parser parser; - std::string path; + string path; unsigned int src_idx; istream_pos_type beg_pos; unsigned long beg_line; @@ -80,9 +80,9 @@ struct gnucash_parser_t : public parser_t virtual unsigned int parse(std::istream& in, journal_t * journal, account_t * master = NULL, - const std::string * original_file = NULL); + const string * original_file = NULL); - amount_t convert_number(const std::string& number, int * precision = NULL); + amount_t convert_number(const string& number, int * precision = NULL); }; } // namespace ledger -- cgit v1.2.3