summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.cc b/format.cc
index 3f59807b..4e1b5708 100644
--- a/format.cc
+++ b/format.cc
@@ -33,8 +33,8 @@ std::string partial_account_name(const account_t * account)
return name;
}
-std::auto_ptr<node_t> format_t::value_expr;
-std::auto_ptr<node_t> format_t::total_expr;
+std::auto_ptr<value_expr_t> format_t::value_expr;
+std::auto_ptr<value_expr_t> format_t::total_expr;
element_t * format_t::parse_elements(const std::string& fmt)
{
@@ -99,7 +99,7 @@ element_t * format_t::parse_elements(const std::string& fmt)
throw format_error("Missing ')'");
current->type = element_t::VALUE_EXPR;
- current->val_expr = parse_expr(num);
+ current->val_expr = parse_value_expr(num);
break;
case '[':