summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-02-09 16:33:48 +0000
committerAlan Conway <aconway@apache.org>2009-02-09 16:33:48 +0000
commit08d3f7bb40f0c37a0d6494379f1fa4c525a78a05 (patch)
treed30882f14b13f0944726125dc516431c5799e270
parent8829dc3ea8461c8e632a158e13a5990010cfb931 (diff)
downloadqpid-python-08d3f7bb40f0c37a0d6494379f1fa4c525a78a05.tar.gz
Fix doubly-defined function.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@742602 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/tests/ClusterFixture.cpp22
-rw-r--r--qpid/cpp/src/tests/cluster_test.cpp7
2 files changed, 10 insertions, 19 deletions
diff --git a/qpid/cpp/src/tests/ClusterFixture.cpp b/qpid/cpp/src/tests/ClusterFixture.cpp
index 7b89aa9b5d..76c7cd7e2b 100644
--- a/qpid/cpp/src/tests/ClusterFixture.cpp
+++ b/qpid/cpp/src/tests/ClusterFixture.cpp
@@ -60,18 +60,6 @@ using qpid::cluster::Cluster;
#include "ClusterFixture.h"
-
-/** Parse broker & cluster options */
-Broker::Options parseOpts(size_t argc, const char* argv[]) {
- Broker::Options opts;
- Plugin::addOptions(opts); // Pick up cluster options.
- opts.parse(argc, argv, "", true); // Allow-unknown for --load-module
- return opts;
-}
-
-
-
-
ClusterFixture::ClusterFixture(size_t n, int localIndex_) : name(Uuid(true).str()), localIndex(localIndex_) {
add(n);
}
@@ -97,6 +85,16 @@ void ClusterFixture::add() {
}
}
+namespace {
+/** Parse broker & cluster options */
+Broker::Options parseOpts(size_t argc, const char* argv[]) {
+ Broker::Options opts;
+ Plugin::addOptions(opts); // Pick up cluster options.
+ opts.parse(argc, argv, "", true); // Allow-unknown for --load-module
+ return opts;
+}
+}
+
void ClusterFixture::addLocal() {
assert(int(size()) == localIndex || localIndex == -1);
localIndex = size();
diff --git a/qpid/cpp/src/tests/cluster_test.cpp b/qpid/cpp/src/tests/cluster_test.cpp
index 6ee42be194..15a96aeba9 100644
--- a/qpid/cpp/src/tests/cluster_test.cpp
+++ b/qpid/cpp/src/tests/cluster_test.cpp
@@ -64,13 +64,6 @@ using qpid::broker::Broker;
using boost::shared_ptr;
using qpid::cluster::Cluster;
-/** Parse broker & cluster options */
-Broker::Options parseOpts(size_t argc, const char* argv[]) {
- Broker::Options opts;
- Plugin::addOptions(opts); // Pick up cluster options.
- opts.parse(argc, argv, "", true); // Allow-unknown for --load-module
- return opts;
-}
ostream& operator<<(ostream& o, const cpg_name* n) {
return o << qpid::cluster::Cpg::str(*n);