From eea881973fc97d1e3ccd4ce358229bd2459acb25 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 15 Nov 2007 03:26:58 +0000 Subject: Revert the change that renamed append() to push_back(). As pointed out by Joel Low on the mailing list, the STL container types have only a single version of push_back(), along with variations of insert() for handling range-based appending. --- src/ber_dec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ber_dec.cpp') diff --git a/src/ber_dec.cpp b/src/ber_dec.cpp index afe678f84..2537a917b 100644 --- a/src/ber_dec.cpp +++ b/src/ber_dec.cpp @@ -104,7 +104,7 @@ u32bit find_eoc(DataSource* ber) const u32bit got = ber->peek(buffer, buffer.size(), data.size()); if(got == 0) break; - data.push_back(buffer, got); + data.append(buffer, got); } DataSource_Memory source(data); @@ -169,7 +169,7 @@ BER_Decoder& BER_Decoder::raw_bytes(MemoryRegion& out) out.destroy(); byte buf; while(source->read_byte(buf)) - out.push_back(buf); + out.append(buf); return (*this); } -- cgit v1.2.3