From cd1bbd2d0ed63e274b59489248d7099f36414c71 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 9 Oct 2008 08:36:25 +0000 Subject: Minor indentation fixes git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703102 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Queue.h | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'cpp/src/qpid/broker/Queue.h') diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index 213a36d59d..9a7c90181c 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -77,12 +77,12 @@ namespace qpid { bool lastValueQueue; bool optimisticConsume; bool persistLastNode; - bool inLastNodeFailure; + bool inLastNodeFailure; std::string traceId; std::vector traceExclude; Listeners listeners; Messages messages; - LVQ lvq; + LVQ lvq; mutable qpid::sys::Mutex consumerLock; mutable qpid::sys::Mutex messageLock; mutable qpid::sys::Mutex ownershipLock; @@ -109,26 +109,29 @@ namespace qpid { void dequeued(const QueuedMessage& msg); void popAndDequeue(); - inline void mgntEnqStats(const boost::intrusive_ptr& msg){ + + inline void mgntEnqStats(const boost::intrusive_ptr& msg) + { if (mgmtObject != 0) { mgmtObject->inc_msgTotalEnqueues (); mgmtObject->inc_byteTotalEnqueues (msg->contentSize ()); if (msg->isPersistent ()) { - mgmtObject->inc_msgPersistEnqueues (); - mgmtObject->inc_bytePersistEnqueues (msg->contentSize ()); - } + mgmtObject->inc_msgPersistEnqueues (); + mgmtObject->inc_bytePersistEnqueues (msg->contentSize ()); + } + } + } + inline void mgntDeqStats(const boost::intrusive_ptr& msg) + { + if (mgmtObject != 0){ + mgmtObject->inc_msgTotalDequeues (); + mgmtObject->inc_byteTotalDequeues (msg->contentSize()); + if (msg->isPersistent ()){ + mgmtObject->inc_msgPersistDequeues (); + mgmtObject->inc_bytePersistDequeues (msg->contentSize()); + } } - }; - inline void mgntDeqStats(const boost::intrusive_ptr& msg){ - if (mgmtObject != 0){ - mgmtObject->inc_msgTotalDequeues (); - mgmtObject->inc_byteTotalDequeues (msg->contentSize()); - if (msg->isPersistent ()){ - mgmtObject->inc_msgPersistDequeues (); - mgmtObject->inc_bytePersistDequeues (msg->contentSize()); - } - } - }; + } public: -- cgit v1.2.1