summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
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: {