diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
commit | 76dc7ca3e92919d83932e66906425067652e76f5 (patch) | |
tree | 3ad2af5d89e4df8af3c3eea74226c3c73ce80c63 /cpp/src/qpid/broker/Message.cpp | |
parent | 037882cebf617cd18b5aa372fc22f50e692df2c6 (diff) | |
download | qpid-python-76dc7ca3e92919d83932e66906425067652e76f5.tar.gz |
Field Table API: changed the getInt() & getString() operations
which are inconsistent with all the other getXXX() functions to
getAsString()/getAsInt() to better indicate their real function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@704255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Message.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Message.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index 0e37dabe8a..0302bc1dbd 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -273,7 +273,7 @@ bool Message::isExcluded(const std::vector<std::string>& excludes) const { const FieldTable* headers = getApplicationHeaders(); if (headers) { - std::string traceStr = headers->getString(X_QPID_TRACE); + std::string traceStr = headers->getAsString(X_QPID_TRACE); if (traceStr.size()) { std::vector<std::string> trace = split(traceStr, ", "); @@ -294,7 +294,7 @@ void Message::addTraceId(const std::string& id) sys::Mutex::ScopedLock l(lock); if (isA<MessageTransferBody>()) { FieldTable& headers = getProperties<MessageProperties>()->getApplicationHeaders(); - std::string trace = headers.getString(X_QPID_TRACE); + std::string trace = headers.getAsString(X_QPID_TRACE); if (trace.empty()) { headers.setString(X_QPID_TRACE, id); } else if (trace.find(id) == std::string::npos) { |