summaryrefslogtreecommitdiff
path: root/cpp/src/tests/HeaderTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-01-22 20:29:12 +0000
committerAlan Conway <aconway@apache.org>2009-01-22 20:29:12 +0000
commit1a14b81c86c49d562486ab2c55a75c564144fa71 (patch)
treec31be2934c8802cc6e6499bf3fca3590f6637767 /cpp/src/tests/HeaderTest.cpp
parentcacc168520f742ae7a45fa4d7198d6958ae5b9a4 (diff)
downloadqpid-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/tests/HeaderTest.cpp')
-rw-r--r--cpp/src/tests/HeaderTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/HeaderTest.cpp b/cpp/src/tests/HeaderTest.cpp
index 33bf705e65..01e7c22ee6 100644
--- a/cpp/src/tests/HeaderTest.cpp
+++ b/cpp/src/tests/HeaderTest.cpp
@@ -49,7 +49,7 @@ QPID_AUTO_TEST_CASE(testGenericProperties)
QPID_AUTO_TEST_CASE(testMessageProperties)
{
- AMQFrame out(in_place<AMQHeaderBody>());
+ AMQFrame out((AMQHeaderBody()));
MessageProperties* props1 =
out.castBody<AMQHeaderBody>()->get<MessageProperties>(true);
@@ -84,7 +84,7 @@ QPID_AUTO_TEST_CASE(testMessageProperties)
QPID_AUTO_TEST_CASE(testDeliveryProperies)
{
- AMQFrame out(in_place<AMQHeaderBody>());
+ AMQFrame out((AMQHeaderBody()));
DeliveryProperties* props1 =
out.castBody<AMQHeaderBody>()->get<DeliveryProperties>(true);