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 | 1f6668a4073ab5cc6c2574ef7f0432d86093a262 (patch) | |
| tree | 025210a4429b624846809059f680293bbe56ca19 /cpp/src/tests | |
| parent | 3e67aef7b465cbc3cc2a4d104b87d7032f455e0e (diff) | |
| download | qpid-python-1f6668a4073ab5cc6c2574ef7f0432d86093a262.tar.gz | |
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
Diffstat (limited to 'cpp/src/tests')
| -rw-r--r-- | cpp/src/tests/qpid-ping.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/tests/qpid-send.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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(); |
