summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 05:53:36 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 05:53:36 -0600
commit036200e959db6a3b9fe0d02f9eec3eb131983ab4 (patch)
tree02e86d54089da915cb98e3752c3cf77410ab25c4 /src/format.cc
parent96ec764c4ad31e3d66782775fcc6885ad0818111 (diff)
downloadfork-ledger-036200e959db6a3b9fe0d02f9eec3eb131983ab4.tar.gz
fork-ledger-036200e959db6a3b9fe0d02f9eec3eb131983ab4.tar.bz2
fork-ledger-036200e959db6a3b9fe0d02f9eec3eb131983ab4.zip
Make copying of format_t objects memory-safe
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/format.cc b/src/format.cc
index f16b4ba9..9824d5f7 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -40,16 +40,6 @@ namespace ledger {
format_t::elision_style_t format_t::default_style = TRUNCATE_TRAILING;
bool format_t::default_style_changed = false;
-format_t::element_t::element_t(const element_t& elem)
- : supports_flags<>(),
- type(elem.type),
- min_width(elem.min_width),
- max_width(elem.max_width),
- data(elem.data)
-{
- TRACE_CTOR(element_t, "copy");
-}
-
void format_t::element_t::dump(std::ostream& out) const
{
out << "Element: ";
@@ -426,7 +416,6 @@ string format_t::real_calc(scope_t& scope)
case element_t::EXPR: {
expr_t& expr(boost::get<expr_t>(elem->data));
try {
-
expr.compile(scope);
value_t value;