diff options
| author | Gordon Sim <gsim@apache.org> | 2008-04-24 21:07:34 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-04-24 21:07:34 +0000 |
| commit | 1c86294add5cbb640aac7f458c4de693de48dd9f (patch) | |
| tree | 22d7774e00c7514c4b76be5cf8b50727b74fe4e3 /cpp/src/qpid/broker/SemanticState.cpp | |
| parent | 96f12949244b5af2b717156823309b66fe7bfb84 (diff) | |
| download | qpid-python-1c86294add5cbb640aac7f458c4de693de48dd9f.tar.gz | |
Generate c++ code from final 0-10 spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@651423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index ab6b82a232..e73540891c 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -19,22 +19,19 @@ * */ -#include "SessionContext.h" -#include "BrokerAdapter.h" -#include "Queue.h" +#include "SessionState.h" #include "Connection.h" #include "DeliverableMessage.h" #include "DtxAck.h" #include "DtxTimeout.h" #include "Message.h" -#include "SemanticHandler.h" -#include "SessionHandler.h" +#include "Queue.h" +#include "SessionContext.h" #include "TxAccept.h" #include "TxAck.h" #include "TxPublish.h" #include "qpid/framing/reply_exceptions.h" #include "qpid/framing/MessageTransferBody.h" -#include "qpid/framing/MessageXTransferBody.h" #include "qpid/log/Statement.h" #include "qpid/ptr_map.h" @@ -357,9 +354,7 @@ void SemanticState::handle(intrusive_ptr<Message> msg) { void SemanticState::route(intrusive_ptr<Message> msg, Deliverable& strategy) { std::string exchangeName = msg->getExchangeName(); //TODO: the following should be hidden behind message (using MessageAdapter or similar) - if (msg->isA<MessageXTransferBody>()) { - msg->getProperties<PreviewDeliveryProperties>()->setExchange(exchangeName); - } else if (msg->isA<MessageTransferBody>()) { + if (msg->isA<MessageTransferBody>()) { msg->getProperties<DeliveryProperties>()->setExchange(exchangeName); } if (!cacheExchange || cacheExchange->getName() != exchangeName){ |
