summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
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
*/