summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-01 04:36:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:35 -0400
commite92bcf411d2e9a55969303ba3893a017152d7c18 (patch)
treee7b52d09751de39c86ede91f88a2fcf24facfb27 /src/report.cc
parent50a9caf302936ba6f61bbe05b4718f199d0d584c (diff)
downloadledger-e92bcf411d2e9a55969303ba3893a017152d7c18.tar.gz
ledger-e92bcf411d2e9a55969303ba3893a017152d7c18.tar.bz2
ledger-e92bcf411d2e9a55969303ba3893a017152d7c18.zip
Started using boost::optional<T>.
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/report.cc b/src/report.cc
index 072d0d8b..2d49b62b 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -5,18 +5,14 @@ namespace ledger {
report_t::~report_t()
{
TRACE_DTOR(report_t);
- for (std::list<transform_t *>::const_iterator i = transforms.begin();
- i != transforms.end();
- i++)
- delete *i;
}
void report_t::apply_transforms(xml::document_t * document)
{
- for (std::list<transform_t *>::const_iterator i = transforms.begin();
+ for (ptr_list<transform_t>::iterator i = transforms.begin();
i != transforms.end();
i++)
- (*i)->execute(document);
+ i->execute(document);
}
void report_t::abbrev(value_t& result, xml::xpath_t::scope_t * locals)