diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-03-08 15:55:45 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-03-08 15:55:45 +0000 |
| commit | fe7bea37b1be75bac668a2af46d12054b265d03a (patch) | |
| tree | be766085bdaeb3c22211021510a279e2def3d0e8 /cpp/src/qpid/xml/XmlExchange.cpp | |
| parent | 923b52f4f48245ca5b0d48e5c5c686eeaf225f51 (diff) | |
| download | qpid-python-fe7bea37b1be75bac668a2af46d12054b265d03a.tar.gz | |
QPID-4626: Amqp 0-10 Message getProperty() does not correctly return booleans
- Improve amqp 0-10 message property handling to correct deal with
floats/double and bools.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1454437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/xml/XmlExchange.cpp')
| -rw-r--r-- | cpp/src/qpid/xml/XmlExchange.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/xml/XmlExchange.cpp b/cpp/src/qpid/xml/XmlExchange.cpp index f88acb04ee..a1b0c052d3 100644 --- a/cpp/src/qpid/xml/XmlExchange.cpp +++ b/cpp/src/qpid/xml/XmlExchange.cpp @@ -204,6 +204,7 @@ class DefineExternals : public MapHandler { public: DefineExternals(DynamicContext* c) : context(c) { assert(context); } + void handleBool(const MapHandler::CharSequence& key, bool value) { process(std::string(key.data, key.size), (int) value); } void handleUint8(const MapHandler::CharSequence& key, uint8_t value) { process(std::string(key.data, key.size), (int) value); } void handleUint16(const MapHandler::CharSequence& key, uint16_t value) { process(std::string(key.data, key.size), (int) value); } void handleUint32(const MapHandler::CharSequence& key, uint32_t value) { process(std::string(key.data, key.size), (int) value); } |
