summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/ClientUtil.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-04-04 16:07:03 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-04-04 16:07:03 +0000
commitfc29b8818ddf5af43cdc8e5df43f0dbf0430f00c (patch)
tree72b57f3711dad43a761a7defd66fc15eeb70282b /cpp/src/IcePatch2/ClientUtil.cpp
parentBug 919 - use requestId to set forwarding (diff)
downloadice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.tar.bz2
ice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.tar.xz
ice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.zip
Fixed 803 - make use of zero copy
Diffstat (limited to 'cpp/src/IcePatch2/ClientUtil.cpp')
-rwxr-xr-xcpp/src/IcePatch2/ClientUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2/ClientUtil.cpp b/cpp/src/IcePatch2/ClientUtil.cpp
index 2e5603fa5a7..c9c5ca4da30 100755
--- a/cpp/src/IcePatch2/ClientUtil.cpp
+++ b/cpp/src/IcePatch2/ClientUtil.cpp
@@ -738,10 +738,10 @@ public:
}
virtual void
- ice_response(const ByteSeq& bytes)
+ ice_response(const pair<const Ice::Byte*, const Ice::Byte*>& bytes)
{
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
- _bytes = bytes;
+ ByteSeq(bytes.first, bytes.second).swap(_bytes);
_done = true;
notify();
}