From 23204010207ad7db58500b6547b92b7f91d2df53 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 14 Oct 2010 19:38:40 +0000 Subject: Code cleanup in broker directory. - Removed un-necessary #includes for broker/Queue.h - Removed "using std::string" in header files. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1022679 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/RecoveredEnqueue.h | 35 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'cpp/src/qpid/broker/RecoveredEnqueue.h') diff --git a/cpp/src/qpid/broker/RecoveredEnqueue.h b/cpp/src/qpid/broker/RecoveredEnqueue.h index 09f928f098..5f718001d5 100644 --- a/cpp/src/qpid/broker/RecoveredEnqueue.h +++ b/cpp/src/qpid/broker/RecoveredEnqueue.h @@ -24,7 +24,6 @@ #include "qpid/broker/Deliverable.h" #include "qpid/broker/Message.h" #include "qpid/broker/MessageStore.h" -#include "qpid/broker/Queue.h" #include "qpid/broker/TxOp.h" #include @@ -34,24 +33,24 @@ #include namespace qpid { - namespace broker { - class RecoveredEnqueue : public TxOp{ - Queue::shared_ptr queue; - boost::intrusive_ptr msg; - - public: - RecoveredEnqueue(Queue::shared_ptr queue, boost::intrusive_ptr msg); - virtual bool prepare(TransactionContext* ctxt) throw(); - virtual void commit() throw(); - virtual void rollback() throw(); - virtual ~RecoveredEnqueue(){} - virtual void accept(TxOpConstVisitor& visitor) const { visitor(*this); } - - Queue::shared_ptr getQueue() const { return queue; } - boost::intrusive_ptr getMessage() const { return msg; } +namespace broker { +class RecoveredEnqueue : public TxOp{ + boost::shared_ptr queue; + boost::intrusive_ptr msg; + + public: + RecoveredEnqueue(boost::shared_ptr queue, boost::intrusive_ptr msg); + virtual bool prepare(TransactionContext* ctxt) throw(); + virtual void commit() throw(); + virtual void rollback() throw(); + virtual ~RecoveredEnqueue(){} + virtual void accept(TxOpConstVisitor& visitor) const { visitor(*this); } + + boost::shared_ptr getQueue() const { return queue; } + boost::intrusive_ptr getMessage() const { return msg; } - }; - } +}; +} } -- cgit v1.2.1