summaryrefslogtreecommitdiff
path: root/src/format.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/format.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/format.cc')
-rw-r--r--src/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 9824d5f7..d8c03e6a 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -125,7 +125,7 @@ namespace {
format_t::element_t * format_t::parse_elements(const string& fmt,
const optional<format_t&>& tmpl)
{
- std::auto_ptr<element_t> result;
+ unique_ptr<element_t> result;
element_t * current = NULL;