From 1f6668a4073ab5cc6c2574ef7f0432d86093a262 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 26 Feb 2014 14:22:27 +0000 Subject: NO-JIRA: Fix Coverty "Uncaught exception" errors in test clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1572061 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/qpid-ping.cpp | 2 +- cpp/src/tests/qpid-send.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/qpid-ping.cpp b/cpp/src/tests/qpid-ping.cpp index c0ad35b51d..40e6a0f671 100644 --- a/cpp/src/tests/qpid-ping.cpp +++ b/cpp/src/tests/qpid-ping.cpp @@ -69,8 +69,8 @@ struct PingOptions : public qpid::Options { int main(int argc, char** argv) { Connection connection; - PingOptions opts; try { + PingOptions opts; opts.parse(argc, argv); connection = Connection(opts.url, opts.connectionOptions); connection.open(); diff --git a/cpp/src/tests/qpid-send.cpp b/cpp/src/tests/qpid-send.cpp index 08d2009553..5414abb892 100644 --- a/cpp/src/tests/qpid-send.cpp +++ b/cpp/src/tests/qpid-send.cpp @@ -349,8 +349,8 @@ using qpid::tests::EOS; int main(int argc, char ** argv) { Connection connection; - Options opts; try { + Options opts; if (opts.parse(argc, argv)) { connection = Connection(opts.url, opts.connectionOptions); connection.open(); -- cgit v1.2.1