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

coverity#1237357 Uncaught exception

Change-Id: Ie116e0070792c59893ed0b4f41bcf9831400deb9
üst 00212cdb
......@@ -64,6 +64,8 @@ int UIPreviewApp::Main()
// turn on tooltips
Help::EnableQuickHelp();
int nRet = EXIT_SUCCESS;
try
{
Dialog *pDialog = new Dialog(DIALOG_NO_PARENT, WB_STDDIALOG | WB_SIZEABLE);
......@@ -93,9 +95,15 @@ int UIPreviewApp::Main()
catch (const uno::Exception &e)
{
fprintf(stderr, "fatal error: %s\n", OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr());
nRet = EXIT_FAILURE;
}
catch (const std::exception &e)
{
fprintf(stderr, "fatal error: %s\n", e.what());
nRet = EXIT_FAILURE;
}
return EXIT_SUCCESS;
return nRet;
}
void vclmain::createApplication()
......
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