summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 05:06:57 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 05:06:57 -0600
commit96ec764c4ad31e3d66782775fcc6885ad0818111 (patch)
treee44a263ae82b90cbd89d44fb89e6029f8d45f249 /src/format.cc
parenteabd5c6a0c6796547a91cf6e642090cdb298f4da (diff)
downloadfork-ledger-96ec764c4ad31e3d66782775fcc6885ad0818111.tar.gz
fork-ledger-96ec764c4ad31e3d66782775fcc6885ad0818111.tar.bz2
fork-ledger-96ec764c4ad31e3d66782775fcc6885ad0818111.zip
Don't copy the next pointer in element_t's copy ctor
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/format.cc b/src/format.cc
index 97dcfb22..f16b4ba9 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -45,8 +45,7 @@ format_t::element_t::element_t(const element_t& elem)
type(elem.type),
min_width(elem.min_width),
max_width(elem.max_width),
- data(elem.data),
- next(elem.next ? new element_t(*elem.next) : NULL)
+ data(elem.data)
{
TRACE_CTOR(element_t, "copy");
}