diff options
author | Gordon Sim <gsim@apache.org> | 2010-06-03 10:07:23 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-06-03 10:07:23 +0000 |
commit | c54cf4f33f8c44fe96e41e3733d64efb07f614c4 (patch) | |
tree | 8276d1ee23a2345c9cb4718c6dd0d36f1a1f3750 /cpp/src/qpid/messaging | |
parent | 5f675b30f6ac10947080da7a34a1772fdf7eb128 (diff) | |
download | qpid-python-c54cf4f33f8c44fe96e41e3733d64efb07f614c4.tar.gz |
QPID-2640: Don't try to cast integer-like values during parsing; leave as strings and let the usage context determine the correct type to cast to.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950932 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging')
-rw-r--r-- | cpp/src/qpid/messaging/AddressParser.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cpp/src/qpid/messaging/AddressParser.cpp b/cpp/src/qpid/messaging/AddressParser.cpp index 4f22410843..aea9118c3b 100644 --- a/cpp/src/qpid/messaging/AddressParser.cpp +++ b/cpp/src/qpid/messaging/AddressParser.cpp @@ -200,9 +200,6 @@ bool AddressParser::readSimpleValue(Variant& value) std::string s; if (readWord(s)) { value = s; - try { value = value.asInt32(); return true; } catch (const InvalidConversion&) {} - try { value = value.asInt64(); return true; } catch (const InvalidConversion&) {} - try { value = value.asDouble(); return true; } catch (const InvalidConversion&) {} return true; } else { return false; |