From 2e75ce2a7bc1a94c294def9f70789c49770c2470 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 22 Nov 2007 23:55:39 +0000 Subject: 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 - 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 --- qpid/cpp/src/tests/HeaderTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src/tests/HeaderTest.cpp') diff --git a/qpid/cpp/src/tests/HeaderTest.cpp b/qpid/cpp/src/tests/HeaderTest.cpp index 21374e30e1..9e2bddb4de 100644 --- a/qpid/cpp/src/tests/HeaderTest.cpp +++ b/qpid/cpp/src/tests/HeaderTest.cpp @@ -56,7 +56,7 @@ class HeaderTest : public CppUnit::TestCase } void testMessageProperties() { - AMQFrame out(0, AMQHeaderBody()); + AMQFrame out(in_place()); MessageProperties* props1 = out.castBody()->get(true); @@ -96,7 +96,7 @@ class HeaderTest : public CppUnit::TestCase } void testDeliveryProperies() { - AMQFrame out(0, AMQHeaderBody()); + AMQFrame out(in_place()); DeliveryProperties* props1 = out.castBody()->get(true); -- cgit v1.2.1