From 50593c783fbcf9e85ae11152f159a7545beb0647 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 13 Dec 2013 19:30:01 +0000 Subject: QPID-5421: Refactor: clean up QueueObservers. Refactor of queue observers to use the broker::Observers base class. Simplifies Queue code and makes it more consistent with other observers (BrokerObservers, ConnectionObservers.) Modified Observers base class to allow identical locking behaviour to previous impementation. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1550818 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueueFlowLimit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/QueueFlowLimit.cpp') diff --git a/cpp/src/qpid/broker/QueueFlowLimit.cpp b/cpp/src/qpid/broker/QueueFlowLimit.cpp index 3a609d67f1..9c215d197f 100644 --- a/cpp/src/qpid/broker/QueueFlowLimit.cpp +++ b/cpp/src/qpid/broker/QueueFlowLimit.cpp @@ -244,7 +244,7 @@ void QueueFlowLimit::observe(Queue& queue) } /* set up the observer */ - queue.addObserver(shared_from_this()); + queue.getObservers().add(shared_from_this()); } /** returns ptr to a QueueFlowLimit, else 0 if no limit */ -- cgit v1.2.1