From 30005d1ba5d87a972d3b68574d90e3af0159a576 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Feb 2009 14:14:22 -0400 Subject: Push a sequence onto a sequence only appends now Previously, it would merge sequences A and B. --- src/value.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index da6e2ed6..ec0a329a 100644 --- a/src/value.h +++ b/src/value.h @@ -795,14 +795,7 @@ public: *this = sequence_t(); if (! is_sequence()) in_place_cast(SEQUENCE); - - if (! val.is_sequence()) { - as_sequence_lval().push_back(val); - } else { - const sequence_t& val_seq(val.as_sequence()); - std::copy(val_seq.begin(), val_seq.end(), - back_inserter(as_sequence_lval())); - } + as_sequence_lval().push_back(val); } } -- cgit v1.2.3