diff options
| author | Alan Conway <aconway@apache.org> | 2009-01-22 20:29:12 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-01-22 20:29:12 +0000 |
| commit | 1a14b81c86c49d562486ab2c55a75c564144fa71 (patch) | |
| tree | c31be2934c8802cc6e6499bf3fca3590f6637767 /cpp/src/qpid/client | |
| parent | cacc168520f742ae7a45fa4d7198d6958ae5b9a4 (diff) | |
| download | qpid-python-1a14b81c86c49d562486ab2c55a75c564144fa71.tar.gz | |
Removed BodyHolder: minor performance improvement, opens the way for more efficient memory management.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736783 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client')
| -rw-r--r-- | cpp/src/qpid/client/ConnectionImpl.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/client/SessionImpl.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index d0e47b774f..8e27d78479 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/ConnectionImpl.cpp @@ -164,7 +164,7 @@ void ConnectionImpl::idleIn() void ConnectionImpl::idleOut() { - AMQFrame frame(in_place<AMQHeartbeatBody>()); + AMQFrame frame((AMQHeartbeatBody())); connector->send(frame); } diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp index ab8c1bddb8..4fadf236f8 100644 --- a/cpp/src/qpid/client/SessionImpl.cpp +++ b/cpp/src/qpid/client/SessionImpl.cpp @@ -364,7 +364,7 @@ void SessionImpl::sendContent(const MethodContent& content) const uint32_t frag_size = maxFrameSize - AMQFrame::frameOverhead(); if(data_length < frag_size){ - AMQFrame frame(in_place<AMQContentBody>(content.getData())); + AMQFrame frame((AMQContentBody(content.getData()))); frame.setFirstSegment(false); handleOut(frame); }else{ @@ -373,7 +373,7 @@ void SessionImpl::sendContent(const MethodContent& content) while (remaining > 0) { uint32_t length = remaining > frag_size ? frag_size : remaining; string frag(content.getData().substr(offset, length)); - AMQFrame frame(in_place<AMQContentBody>(frag)); + AMQFrame frame((AMQContentBody(frag))); frame.setFirstSegment(false); frame.setLastSegment(true); if (offset > 0) { |
