From b35d3ed3ae1d1b5623f68433c4cae3ec777a6be4 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 19 Oct 2010 15:31:29 +0000 Subject: Fix compile error: outline set/getCluster fucntions on Broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1024275 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Broker.cpp | 4 ++++ cpp/src/qpid/broker/Broker.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index a288da00c7..c93949e33f 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -512,5 +512,9 @@ void Broker::setClusterTimer(std::auto_ptr t) { const std::string Broker::TCP_TRANSPORT("tcp"); +void Broker::setCluster(std::auto_ptr c) { cluster = c; } + +Cluster& Broker::getCluster() { return *cluster; } + }} // namespace qpid::broker diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h index dcb20c4fe3..d589b15f19 100644 --- a/cpp/src/qpid/broker/Broker.h +++ b/cpp/src/qpid/broker/Broker.h @@ -275,8 +275,8 @@ public: void setClusterUpdatee(bool set) { clusterUpdatee = set; } bool isClusterUpdatee() const { return clusterUpdatee; } - QPID_BROKER_EXTERN void setCluster(std::auto_ptr c) { cluster = c; } - QPID_BROKER_EXTERN Cluster& getCluster() { return *cluster; } + QPID_BROKER_EXTERN void setCluster(std::auto_ptr c); + QPID_BROKER_EXTERN Cluster& getCluster(); management::ManagementAgent* getManagementAgent() { return managementAgent.get(); } -- cgit v1.2.1