Kaydet (Commit) b536f9ae authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#441989 Uncaught exception

Change-Id: I579bfc6f4a57aea49e2b023917d0dbd7c3db6c88
üst cd31cfbf
...@@ -42,11 +42,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { ...@@ -42,11 +42,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
if (!options.initOptions(argc, argv)) { if (!options.initOptions(argc, argv)) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} catch (IllegalArgument & e) {
std::cerr << "Illegal option " << e.m_message << '\n';
return EXIT_FAILURE;
}
try {
rtl::Reference< TypeManager > typeMgr(new TypeManager); rtl::Reference< TypeManager > typeMgr(new TypeManager);
for (std::vector< OString >::const_iterator i( for (std::vector< OString >::const_iterator i(
options.getExtraInputFiles().begin()); options.getExtraInputFiles().begin());
...@@ -102,6 +98,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { ...@@ -102,6 +98,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
<< "ERROR: Bad format of <" << e.getUri() << ">, \"" << "ERROR: Bad format of <" << e.getUri() << ">, \""
<< e.getDetail() << "\"\n"; << e.getDetail() << "\"\n";
return EXIT_FAILURE; return EXIT_FAILURE;
} catch (IllegalArgument & e) {
std::cerr << "Illegal option " << e.m_message << '\n';
return EXIT_FAILURE;
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment