summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/cluster/Cpg.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
committerAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
commit95ad2adfc443b227eba224279188c36906c1db66 (patch)
tree14c91400e2284b2c4f782d203a60d44dbee31f9e /qpid/cpp/src/qpid/cluster/Cpg.cpp
parent8db25489a2971803b21d73814521b40731111bd5 (diff)
downloadqpid-python-95ad2adfc443b227eba224279188c36906c1db66.tar.gz
Merge branch 'visibility-hidden' into qpid-3163qpid-3163
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3163@1151956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/cluster/Cpg.cpp')
-rw-r--r--qpid/cpp/src/qpid/cluster/Cpg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Cpg.cpp b/qpid/cpp/src/qpid/cluster/Cpg.cpp
index 0856bcd824..d54d007de9 100644
--- a/qpid/cpp/src/qpid/cluster/Cpg.cpp
+++ b/qpid/cpp/src/qpid/cluster/Cpg.cpp
@@ -32,7 +32,7 @@
// This is a macro instead of a function because we don't want to
// evaluate the MSG argument unless there is an error.
#define CPG_CHECK(RESULT, MSG) \
- if ((RESULT) != CPG_OK) throw Exception(errorStr((RESULT), (MSG)))
+ if ((RESULT) != CPG_OK) throw qpid::Exception(errorStr((RESULT), (MSG)))
namespace qpid {
namespace cluster {
@@ -44,7 +44,7 @@ using namespace std;
Cpg* Cpg::cpgFromHandle(cpg_handle_t handle) {
void* cpg=0;
CPG_CHECK(cpg_context_get(handle, &cpg), "Cannot get CPG instance.");
- if (!cpg) throw Exception("Cannot get CPG instance.");
+ if (!cpg) throw qpid::Exception("Cannot get CPG instance.");
return reinterpret_cast<Cpg*>(cpg);
}
@@ -154,7 +154,7 @@ void Cpg::join(const std::string& name) {
group = name;
callCpg ( cpgJoinOp );
}
-
+
void Cpg::leave() {
callCpg ( cpgLeaveOp );
}