summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-05 19:12:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-05 19:12:23 -0400
commit7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da (patch)
treeee00c3c5b17534ff44bedc9ff125eb6f3e25e40a /format.cc
parent1741c80fe4f9dd896d4c8912b2ba35b14500ca1c (diff)
downloadfork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.tar.gz
fork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.tar.bz2
fork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.zip
added back sorting support
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.cc b/format.cc
index 189d84ff..94a325d3 100644
--- a/format.cc
+++ b/format.cc
@@ -147,7 +147,7 @@ element_t * format_t::parse_elements(const std::string& fmt)
void format_t::format_elements(std::ostream& out,
const details_t& details) const
{
- for (const element_t * elem = elements.get(); elem; elem = elem->next) {
+ for (const element_t * elem = elements; elem; elem = elem->next) {
if (elem->align_left)
out << std::left;
else
@@ -158,7 +158,7 @@ void format_t::format_elements(std::ostream& out,
switch (elem->type) {
case element_t::STRING:
- out << elem->chars;;
+ out << elem->chars;
break;
case element_t::VALUE_EXPR: {