From d6d80c4e1783b4459bd4a8fbcbdfeebe416c1cb5 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 30 Nov 2020 14:19:29 +0200 Subject: OSL_FAIL.*exception -> TOOLS_WARN_EXCEPTION Change-Id: I6800e23ead2767d245d5da71d2d40e0f8a6d7e1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106859 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/controls/accessiblecontrolcontext.cxx | 2 +- toolkit/source/controls/filectrl.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx index c2d0b46db6a6..36b6287d65ec 100644 --- a/toolkit/source/controls/accessiblecontrolcontext.cxx +++ b/toolkit/source/controls/accessiblecontrolcontext.cxx @@ -95,7 +95,7 @@ namespace toolkit } catch( const Exception& ) { - OSL_FAIL( "OAccessibleControlContext::create: caught an exception from the late ctor!" ); + TOOLS_WARN_EXCEPTION( "toolkit", "OAccessibleControlContext::create: caught an exception from the late ctor!" ); } return pNew; } diff --git a/toolkit/source/controls/filectrl.cxx b/toolkit/source/controls/filectrl.cxx index bea09aeb7e12..e3b2fd8abcb5 100644 --- a/toolkit/source/controls/filectrl.cxx +++ b/toolkit/source/controls/filectrl.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -237,7 +238,7 @@ IMPL_LINK_NOARG(FileControl, ButtonHdl, Button*, void) } catch( const Exception& ) { - OSL_FAIL( "FileControl::ImplBrowseFile: caught an exception while executing the file picker!" ); + TOOLS_WARN_EXCEPTION( "toolkit", "FileControl::ImplBrowseFile: caught an exception while executing the file picker!" ); } } -- cgit