diff options
author | Marc Laukien <marc@zeroc.com> | 2005-02-23 19:21:43 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2005-02-23 19:21:43 +0000 |
commit | 98a6af97e16a364f1b493e472fa0a80bd812cb41 (patch) | |
tree | 2c951cf2087fef0d368114cb86ad1e8c8e05423d /cpp/src/Ice/BasicStream.cpp | |
parent | replaced some of the perl in place editing with some python code to get (diff) | |
download | ice-98a6af97e16a364f1b493e472fa0a80bd812cb41.tar.bz2 ice-98a6af97e16a364f1b493e472fa0a80bd812cb41.tar.xz ice-98a6af97e16a364f1b493e472fa0a80bd812cb41.zip |
Buffer::Container
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 96a8812b402..41681accfbf 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -93,8 +93,7 @@ IceInternal::BasicStream::swap(BasicStream& other) { assert(_instance == other._instance); - b.swap(other.b); - std::swap(i, other.i); + Buffer::swap(other); // // Swap is never called for BasicStreams that have more than one @@ -141,17 +140,6 @@ IceInternal::BasicStream::swap(BasicStream& other) std::swap(_objectList, other._objectList); } -void -IceInternal::BasicStream::reserve(Container::size_type sz) -{ - if(sz > _messageSizeMax) - { - throw MemoryLimitException(__FILE__, __LINE__); - } - - b.reserve(sz); -} - // // startSeq() and endSeq() sanity-check sequence sizes during // unmarshaling and prevent malicious messages with incorrect sequence |