Don't copy the next pointer in element_t's copy ctor
This commit is contained in:
parent
eabd5c6a0c
commit
96ec764c4a
1 changed files with 1 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue