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 1be9651c..db639edd 100644
--- a/format.cc
+++ b/format.cc
@@ -214,7 +214,7 @@ element_t * format_t::parse_elements(const string& fmt)
p++;
}
if (*p != ')')
- throw new format_error("Missing ')'");
+ throw format_error("Missing ')'");
current->type = element_t::VALUE_EXPR;
@@ -235,7 +235,7 @@ element_t * format_t::parse_elements(const string& fmt)
p++;
}
if (*p != ']')
- throw new format_error("Missing ']'");
+ throw format_error("Missing ']'");
current->type = element_t::DATE_STRING;
current->chars = string(b, p);