summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 17:46:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 17:46:42 -0600
commitb6adc8f4605befc2e6a91dfa28cc9237fb391fbc (patch)
tree2b6858bca43af8dca6c4569e2c14d34e1396b9d4 /src/amount.cc
parent477a9106e3788b33863a7701466860eb5f9682e3 (diff)
downloadfork-ledger-b6adc8f4605befc2e6a91dfa28cc9237fb391fbc.tar.gz
fork-ledger-b6adc8f4605befc2e6a91dfa28cc9237fb391fbc.tar.bz2
fork-ledger-b6adc8f4605befc2e6a91dfa28cc9237fb391fbc.zip
Use unique_ptr instead of std::auto_ptr
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 9704dd21..3ddb7672 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -1027,12 +1027,12 @@ bool amount_t::parse(std::istream& in, const parse_flags_t& flags)
}
// Allocate memory for the amount's quantity value. We have to
- // monitor the allocation in an auto_ptr because this function gets
+ // monitor the allocation in a unique_ptr because this function gets
// called sometimes from amount_t's constructor; and if there is an
// exeception thrown by any of the function calls after this point,
// the destructor will never be called and the memory never freed.
- std::auto_ptr<bigint_t> new_quantity;
+ unique_ptr<bigint_t> new_quantity;
if (quantity) {
if (quantity->refc > 1)