summaryrefslogtreecommitdiff
path: root/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-20 02:14:53 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commitb84f676946941df6f7e8476d77d1db0cbe7736c5 (patch)
tree9ee7c7a2d3b7496b38ad127519210adfeced2241 /py_amount.cc
parent539370ff1b37772e9f11439f652ffd3583beeedb (diff)
downloadledger-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.cc6
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);
}