diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-20 02:14:53 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:28 -0400 |
commit | b84f676946941df6f7e8476d77d1db0cbe7736c5 (patch) | |
tree | 9ee7c7a2d3b7496b38ad127519210adfeced2241 /py_amount.cc | |
parent | 539370ff1b37772e9f11439f652ffd3583beeedb (diff) | |
download | ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.tar.gz ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.tar.bz2 ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.zip |
Did some optimization and memory cleanup
Diffstat (limited to 'py_amount.cc')
-rw-r--r-- | py_amount.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py_amount.cc b/py_amount.cc index eb0a4dd4..6a6ca499 100644 --- a/py_amount.cc +++ b/py_amount.cc @@ -13,11 +13,11 @@ int py_amount_quantity(amount_t& amount) return std::atol(quant.str().c_str()); } -void py_parse_1(amount_t& amount, const std::string& str, +void py_parse_1(amount_t& amount, const string& str, unsigned char flags) { amount.parse(str, flags); } -void py_parse_2(amount_t& amount, const std::string& str) { +void py_parse_2(amount_t& amount, const string& str) { amount.parse(str); } @@ -42,7 +42,7 @@ struct commodity_updater_wrap : public commodity_base_t::updater_t } }; -commodity_t * py_find_commodity(const std::string& symbol) +commodity_t * py_find_commodity(const string& symbol) { return commodity_t::find(symbol); } |