From 4450b2a16677431b1b9dfaa28d0b9af9e51ebdec Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 2 Apr 2018 08:58:19 +0200 Subject: pass area param to DBG_UNHANDLED_EXCEPTION and update sallogareas plugin to enforce this Change-Id: Id0782c8a1f619372e10d931aec3c6a4743a4c86a Reviewed-on: https://gerrit.libreoffice.org/52249 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/basmgr/basicmanagerrepository.cxx | 6 +++--- basic/source/basmgr/basmgr.cxx | 2 +- basic/source/uno/namecont.cxx | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'basic') diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index fc0d29855968..41da1b1fa94f 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -402,7 +402,7 @@ namespace basic } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); } } @@ -513,7 +513,7 @@ namespace basic } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); return false; } return true; @@ -533,7 +533,7 @@ namespace basic } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); } return _out_rxBasicLibraries.is() && _out_rxDialogLibraries.is(); } diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 20751a1202c0..b068db8c63d9 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -1460,7 +1460,7 @@ bool BasicManager::LegacyPsswdBinaryLimitExceeded( std::vector< OUString >& _out } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); } return false; } diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index de80d937711b..becadd064099 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1826,7 +1826,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); return; } @@ -1841,7 +1841,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); return; } } @@ -1917,7 +1917,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch( const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); // TODO: error handling? } } @@ -1972,7 +1972,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch(const uno::Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); // TODO: error handling throw; } @@ -2032,7 +2032,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); throw; } } @@ -3096,7 +3096,7 @@ void SfxLibrary::impl_removeWithoutChecks( const OUString& _rElementName ) } catch(const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("basic"); } } } -- cgit