summaryrefslogtreecommitdiff
path: root/cpp/include/qpid
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/qpid')
-rw-r--r--cpp/include/qpid/amqp_0_10/Codecs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/include/qpid/amqp_0_10/Codecs.h b/cpp/include/qpid/amqp_0_10/Codecs.h
index 78b0aa671b..62370a0e5e 100644
--- a/cpp/include/qpid/amqp_0_10/Codecs.h
+++ b/cpp/include/qpid/amqp_0_10/Codecs.h
@@ -37,8 +37,9 @@ namespace amqp_0_10 {
class QPID_COMMON_EXTERN MapCodec
{
public:
- static void encode(const qpid::types::Variant::Map&, std::string&);
- static void decode(const std::string&, qpid::types::Variant::Map&);
+ typedef qpid::types::Variant::Map ObjectType;
+ static void encode(const ObjectType&, std::string&);
+ static void decode(const std::string&, ObjectType&);
static const std::string contentType;
private:
};
@@ -50,8 +51,9 @@ class QPID_COMMON_EXTERN MapCodec
class QPID_COMMON_EXTERN ListCodec
{
public:
- static void encode(const qpid::types::Variant::List&, std::string&);
- static void decode(const std::string&, qpid::types::Variant::List&);
+ typedef qpid::types::Variant::List ObjectType;
+ static void encode(const ObjectType&, std::string&);
+ static void decode(const std::string&, ObjectType&);
static const std::string contentType;
private:
};