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/Queue.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/Queue.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Queue.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp index e608ef270b..355f822b57 100644 --- a/cpp/src/qpid/broker/Queue.cpp +++ b/cpp/src/qpid/broker/Queue.cpp @@ -206,7 +206,7 @@ bool Queue::acquire(const QueuedMessage& msg) { || (lastValueQueue && i->position == msg.position && i->payload.get() == msg.payload.get())) { if (lastValueQueue){ const framing::FieldTable* ft = msg.payload->getApplicationHeaders(); - string key = ft->getString(qpidVQMatchProperty); + string key = ft->getAsString(qpidVQMatchProperty); lvq.erase(key); } messages.erase(i); @@ -461,7 +461,7 @@ void Queue::popMsg(QueuedMessage& qmsg) { if (lastValueQueue){ const framing::FieldTable* ft = qmsg.payload->getApplicationHeaders(); - string key = ft->getString(qpidVQMatchProperty); + string key = ft->getAsString(qpidVQMatchProperty); lvq.erase(key); } messages.pop_front(); @@ -478,7 +478,7 @@ void Queue::push(boost::intrusive_ptr<Message>& msg){ LVQ::iterator i; if (lastValueQueue){ const framing::FieldTable* ft = msg->getApplicationHeaders(); - string key = ft->getString(qpidVQMatchProperty); + string key = ft->getAsString(qpidVQMatchProperty); i = lvq.find(key); if (i == lvq.end()){ @@ -625,8 +625,8 @@ void Queue::configure(const FieldTable& _settings) persistLastNode= _settings.get(qpidPersistLastNode); if (persistLastNode) QPID_LOG(debug, "Configured queue to Persist data if cluster fails to one node"); - traceId = _settings.getString(qpidTraceIdentity); - std::string excludeList = _settings.getString(qpidTraceExclude); + traceId = _settings.getAsString(qpidTraceIdentity); + std::string excludeList = _settings.getAsString(qpidTraceExclude); if (excludeList.size()) { split(traceExclude, excludeList, ", "); } |