summaryrefslogtreecommitdiff
path: root/cpp/src/posix/QpiddBroker.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-03-20 16:39:03 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-03-20 16:39:03 +0000
commit6703064f0b406ed95e0424f85fc8a950263553f2 (patch)
tree702d605b820a51cd363cee901bd120f2d5da0c15 /cpp/src/posix/QpiddBroker.cpp
parent07c6a631527dd17143f3fbc3629875e160f719b7 (diff)
downloadqpid-python-6703064f0b406ed95e0424f85fc8a950263553f2.tar.gz
QPID-2082: Put all of the C++ code in the source tree into a namespace
- This change moves the remaining non-example code in a namespace git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1302988 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/posix/QpiddBroker.cpp')
-rw-r--r--cpp/src/posix/QpiddBroker.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/cpp/src/posix/QpiddBroker.cpp b/cpp/src/posix/QpiddBroker.cpp
index 1cebcfc3ac..694751c27c 100644
--- a/cpp/src/posix/QpiddBroker.cpp
+++ b/cpp/src/posix/QpiddBroker.cpp
@@ -31,10 +31,11 @@
#include <unistd.h>
#include <sys/utsname.h>
-using namespace std;
-using namespace qpid;
-using qpid::broker::Broker;
-using qpid::broker::Daemon;
+using std::cout;
+using std::endl;
+
+namespace qpid {
+namespace broker {
BootstrapOptions::BootstrapOptions(const char* argv0)
: qpid::Options("Options"),
@@ -197,7 +198,9 @@ int QpiddBroker::execute (QpiddOptions *options) {
return 0;
}
+}} // namespace qpid::Broker
+
int main(int argc, char* argv[])
{
- return run_broker(argc, argv);
+ return qpid::broker::run_broker(argc, argv);
}