summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/TxAckTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-22 23:55:39 +0000
committerAlan Conway <aconway@apache.org>2007-11-22 23:55:39 +0000
commit2e75ce2a7bc1a94c294def9f70789c49770c2470 (patch)
treedc6eb725b33551572647acd7d3e386010ac9160c /qpid/cpp/src/tests/TxAckTest.cpp
parent094141a31480e13811d3653d799b30856faa9393 (diff)
downloadqpid-python-2e75ce2a7bc1a94c294def9f70789c49770c2470.tar.gz
Added framing::BodyHolder:
- Uniform holder for all body types, replaces MethodHolder. - Uses in_place constructors to avoid avoid body copy. framing::AMQFrame: - Holds body in heap-allocated intrusive_ptr<BodyHolder> - Uses in_place constructors to avoid avoid body copy. Removed/downgraded to TODO many redundant FIXME comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@597513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/TxAckTest.cpp')
-rw-r--r--qpid/cpp/src/tests/TxAckTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/TxAckTest.cpp b/qpid/cpp/src/tests/TxAckTest.cpp
index 495b8b550e..bcf422e706 100644
--- a/qpid/cpp/src/tests/TxAckTest.cpp
+++ b/qpid/cpp/src/tests/TxAckTest.cpp
@@ -70,8 +70,9 @@ public:
{
for(int i = 0; i < 10; i++){
intrusive_ptr<Message> msg(new Message());
- AMQFrame method(0, MessageTransferBody(ProtocolVersion(), 0, "exchange", 0, 0));
- AMQFrame header(0, AMQHeaderBody());
+ AMQFrame method(in_place<MessageTransferBody>(
+ ProtocolVersion(), 0, "exchange", 0, 0));
+ AMQFrame header(in_place<AMQHeaderBody>());
msg->getFrames().append(method);
msg->getFrames().append(header);
msg->getProperties<DeliveryProperties>()->setDeliveryMode(PERSISTENT);