summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-26 12:11:10 +0000
committerAlan Conway <aconway@apache.org>2008-05-26 12:11:10 +0000
commitcadb090b23cd630cf5a406c0d78c6435431f29f3 (patch)
treef0f83a855f6573070bf3678cffe32d08d57bb4f1 /cpp
parent423994c0db435f3966c49eb427b245dae18fa8c2 (diff)
downloadqpid-python-cadb090b23cd630cf5a406c0d78c6435431f29f3.tar.gz
Fix compile error in examples.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660173 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/examples/direct/declare_queues.cpp2
-rw-r--r--cpp/examples/examples/xml-exchange/declare_queues.cpp2
-rw-r--r--cpp/src/qpid/client/Session.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/cpp/examples/examples/direct/declare_queues.cpp b/cpp/examples/examples/direct/declare_queues.cpp
index 71ed28dac4..07c9c63ff6 100644
--- a/cpp/examples/examples/direct/declare_queues.cpp
+++ b/cpp/examples/examples/direct/declare_queues.cpp
@@ -57,7 +57,7 @@ int main(int argc, char** argv) {
const char* host = argc>1 ? argv[1] : "127.0.0.1";
int port = argc>2 ? atoi(argv[2]) : 5672;
Connection connection;
- Message msg;
+
try {
connection.open(host, port);
Session session = connection.newSession(ASYNC);
diff --git a/cpp/examples/examples/xml-exchange/declare_queues.cpp b/cpp/examples/examples/xml-exchange/declare_queues.cpp
index 44e3de33f8..b89f95cd97 100644
--- a/cpp/examples/examples/xml-exchange/declare_queues.cpp
+++ b/cpp/examples/examples/xml-exchange/declare_queues.cpp
@@ -36,7 +36,7 @@ int main(int argc, char** argv) {
const char* host = argc>1 ? argv[1] : "127.0.0.1";
int port = argc>2 ? atoi(argv[2]) : 5672;
Connection connection;
- Message msg;
+
try {
connection.open(host, port);
Session session = connection.newSession(ASYNC);
diff --git a/cpp/src/qpid/client/Session.h b/cpp/src/qpid/client/Session.h
index fc4175ef22..84831ec442 100644
--- a/cpp/src/qpid/client/Session.h
+++ b/cpp/src/qpid/client/Session.h
@@ -27,7 +27,7 @@ namespace qpid {
namespace client {
/**
- * Session is currently just an alias for Session_99_0
+ * Session is an alias for Session_0_10
*
* \ingroup clientapi
*/