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

coverity#1251600 Uncaught exception

and

coverity#1251597 Uncaught exception
coverity#1251598 Uncaught exception
coverity#1251599 Uncaught exception

Change-Id: Ifd14f1db5692a8f3ccd1d9ea45d8f0e16c4b0324
üst 0b10bac9
......@@ -730,10 +730,23 @@ public:
virtual int Main() SAL_OVERRIDE
{
DemoWin aMainWin;
aMainWin.SetText( "Interactive VCL demo" );
aMainWin.Show();
Application::Execute();
try
{
DemoWin aMainWin;
aMainWin.SetText( "Interactive VCL demo" );
aMainWin.Show();
Application::Execute();
}
catch (const css::uno::Exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
return 1;
}
catch (const std::exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.what());
return 1;
}
return 0;
}
......
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