diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-03 15:30:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-03 20:17:37 +0100 |
commit | 3bb2cec6f9b81724f5a5e98065122da1f502e6ff (patch) | |
tree | d0050b5e4f004d78c10f07982f19efb9da0b8424 /vcl/workben | |
parent | c87c58feb2e4be996ae28a6bc393fc86cde18598 (diff) |
cid#1496842 silence Uncaught exception
and
cid#1496843 Uncaught exception
Change-Id: I39b972b5573a5d0093e13206508ddd0088cb1146
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127899
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/minvcl.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/workben/minvcl.cxx b/vcl/workben/minvcl.cxx index 98e8dddaacc3..9592769879fa 100644 --- a/vcl/workben/minvcl.cxx +++ b/vcl/workben/minvcl.cxx @@ -13,6 +13,7 @@ #include <com/sun/star/uno/XComponentContext.hpp> #include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/mslangid.hxx> +#include <o3tl/deleter.hxx> #include <vcl/svapp.hxx> #include <vcl/wrkwin.hxx> @@ -55,7 +56,7 @@ int TheApplication::Main() return 0; } -int main() +static int main_impl() { auto xContext = cppu::defaultBootstrap_InitialComponentContext(); css::uno::Reference<css::lang::XMultiServiceFactory> xServiceManager( @@ -74,4 +75,11 @@ int main() return ret; } +int main() +{ + int ret; + suppress_fun_call_w_exception(ret = main_impl()); + return ret; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |