From 7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Aug 2004 19:12:23 -0400 Subject: added back sorting support --- format.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'format.cc') 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: { -- cgit v1.2.3