diff options
author | Alan Conway <aconway@apache.org> | 2014-02-26 14:22:27 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2014-02-26 14:22:27 +0000 |
commit | 6339e3b1ad22e74508510e08384c4d484bd9666c (patch) | |
tree | c850228f24a17defe7f7b0e17a31974ad5be5417 | |
parent | 5742960f6ba79cca5e705a90d5c538be2a36fb1d (diff) | |
download | qpid-python-6339e3b1ad22e74508510e08384c4d484bd9666c.tar.gz |
NO-JIRA: Fix Coverty "Uncaught exception" errors in test clients.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1572061 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/tests/qpid-ping.cpp | 2 | ||||
-rw-r--r-- | qpid/cpp/src/tests/qpid-send.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/qpid-ping.cpp b/qpid/cpp/src/tests/qpid-ping.cpp index c0ad35b51d..40e6a0f671 100644 --- a/qpid/cpp/src/tests/qpid-ping.cpp +++ b/qpid/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/qpid/cpp/src/tests/qpid-send.cpp b/qpid/cpp/src/tests/qpid-send.cpp index 08d2009553..5414abb892 100644 --- a/qpid/cpp/src/tests/qpid-send.cpp +++ b/qpid/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(); |