diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 16:17:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 09:24:51 +0100 |
commit | b536f9ae625cf4e91066c1263f4814a356d0a41e (patch) | |
tree | f9c6502b7880740b6bfa427bb8b0ae532be69be7 /codemaker | |
parent | cd31cfbf170e269a7063e232b062a9ca35b4f5fa (diff) |
coverity#441989 Uncaught exception
Change-Id: I579bfc6f4a57aea49e2b023917d0dbd7c3db6c88
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cppumaker.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/codemaker/source/cppumaker/cppumaker.cxx b/codemaker/source/cppumaker/cppumaker.cxx index 2a698f415f03..ef21d172a98a 100644 --- a/codemaker/source/cppumaker/cppumaker.cxx +++ b/codemaker/source/cppumaker/cppumaker.cxx @@ -42,11 +42,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { if (!options.initOptions(argc, argv)) { return EXIT_FAILURE; } - } catch (IllegalArgument & e) { - std::cerr << "Illegal option " << e.m_message << '\n'; - return EXIT_FAILURE; - } - try { + rtl::Reference< TypeManager > typeMgr(new TypeManager); for (std::vector< OString >::const_iterator i( options.getExtraInputFiles().begin()); @@ -102,6 +98,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { << "ERROR: Bad format of <" << e.getUri() << ">, \"" << e.getDetail() << "\"\n"; return EXIT_FAILURE; + } catch (IllegalArgument & e) { + std::cerr << "Illegal option " << e.m_message << '\n'; + return EXIT_FAILURE; } return EXIT_SUCCESS; } |