aboutsummaryrefslogtreecommitdiffstats
path: root/src/ber_dec.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-11-15 03:26:58 +0000
committerlloyd <[email protected]>2007-11-15 03:26:58 +0000
commiteea881973fc97d1e3ccd4ce358229bd2459acb25 (patch)
tree677121e3a220b37257287b7a0796a14c5145c1af /src/ber_dec.cpp
parenta731f8135bfd322d187dff46b0b1c3cdc0e76cba (diff)
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.
Diffstat (limited to 'src/ber_dec.cpp')
-rw-r--r--src/ber_dec.cpp4
1 files changed, 2 insertions, 2 deletions
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<byte>& out)
out.destroy();
byte buf;
while(source->read_byte(buf))
- out.push_back(buf);
+ out.append(buf);
return (*this);
}