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

coverity#1257738 Uncaught exception

Change-Id: I44648fb951d03090759d8afaa20cab7d945f684d
üst d4b7bd99
...@@ -87,13 +87,25 @@ public: ...@@ -87,13 +87,25 @@ public:
virtual int Main() SAL_OVERRIDE virtual int Main() SAL_OVERRIDE
{ {
mpWin = new DemoMtfWin(*mpFileName); try
mpWin->SetText(OUString("Display metafile")); {
mpWin = new DemoMtfWin(*mpFileName);
mpWin->Show(); mpWin->SetText(OUString("Display metafile"));
Application::Execute(); mpWin->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; 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