summaryrefslogtreecommitdiff
path: root/cpp/src/tests/HeaderTest.cpp
diff options
context:
space:
mode:
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 21374e30e1..9e2bddb4de 100644
--- a/cpp/src/tests/HeaderTest.cpp
+++ b/cpp/src/tests/HeaderTest.cpp
@@ -56,7 +56,7 @@ class HeaderTest : public CppUnit::TestCase
}
void testMessageProperties() {
- AMQFrame out(0, AMQHeaderBody());
+ AMQFrame out(in_place<AMQHeaderBody>());
MessageProperties* props1 =
out.castBody<AMQHeaderBody>()->get<MessageProperties>(true);
@@ -96,7 +96,7 @@ class HeaderTest : public CppUnit::TestCase
}
void testDeliveryProperies() {
- AMQFrame out(0, AMQHeaderBody());
+ AMQFrame out(in_place<AMQHeaderBody>());
DeliveryProperties* props1 =
out.castBody<AMQHeaderBody>()->get<DeliveryProperties>(true);