From a48340c029e7d7c4e3085e2d15632d5fb45f9343 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 15 Jan 2009 11:15:16 +0000 Subject: Minor formatting fixes and typo correction. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734668 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueueRegistry.cpp | 10 +++++----- cpp/src/qpid/broker/QueueRegistry.h | 2 +- cpp/src/qpid/client/ConnectionImpl.cpp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/QueueRegistry.cpp b/cpp/src/qpid/broker/QueueRegistry.cpp index 2447ce5402..2cb801bf83 100644 --- a/cpp/src/qpid/broker/QueueRegistry.cpp +++ b/cpp/src/qpid/broker/QueueRegistry.cpp @@ -97,11 +97,11 @@ void QueueRegistry::updateQueueClusterState(bool _lastNode) RWlock::ScopedRlock locker(lock); for (QueueMap::iterator i = queues.begin(); i != queues.end(); i++) { if (_lastNode){ - i->second->setLastNodeFailure(); - } else { - i->second->clearLastNodeFailure(); - } + i->second->setLastNodeFailure(); + } else { + i->second->clearLastNodeFailure(); + } } - lastNode = _lastNode; + lastNode = _lastNode; } diff --git a/cpp/src/qpid/broker/QueueRegistry.h b/cpp/src/qpid/broker/QueueRegistry.h index ca2cd132c4..c53ba668cc 100644 --- a/cpp/src/qpid/broker/QueueRegistry.h +++ b/cpp/src/qpid/broker/QueueRegistry.h @@ -121,7 +121,7 @@ private: int counter; MessageStore* store; management::Manageable* parent; - bool lastNode; //used to set mode on queue declare + bool lastNode; //used to set mode on queue declare //destroy impl that assumes lock is already held: void destroyLH (const string& name); diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index 46ef9eda1e..d0e47b774f 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/ConnectionImpl.cpp @@ -95,7 +95,7 @@ void ConnectionImpl::addSession(const boost::shared_ptr& session, u session->setChannel(channel ? channel : nextChannel++); boost::weak_ptr& s = sessions[session->getChannel()]; boost::shared_ptr ss = s.lock(); - if (ss) throw SessionBusyException(QPID_MSG("Channel " << ss->getChannel() << " attachd to " << ss->getId())); + if (ss) throw SessionBusyException(QPID_MSG("Channel " << ss->getChannel() << " attached to " << ss->getId())); s = session; } -- cgit v1.2.1