diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-15 13:11:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-16 08:55:07 +0200 |
commit | 7508c1d1e701dba8cb67414be59193d9672b66ab (patch) | |
tree | 5f37eecd6486a223f26b882ca8697fb9afecb9cc /framework/source/services | |
parent | cf4059d59752de6e9a6eca59b388beef27bcd7e6 (diff) |
loplugin:logexceptionnicely in filter..framework
Change-Id: I8cf70ee278c641767e3fcfcfd151d99d791b3468
Reviewed-on: https://gerrit.libreoffice.org/74098
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/services')
-rw-r--r-- | framework/source/services/sessionlistener.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx index b1be64620b0f..db19346d7f76 100644 --- a/framework/source/services/sessionlistener.cxx +++ b/framework/source/services/sessionlistener.cxx @@ -24,6 +24,7 @@ #include <protocols.h> #include <general.h> +#include <tools/diagnose_ex.h> #include <vcl/svapp.hxx> #include <unotools/tempfile.hxx> #include <com/sun/star/beans/NamedValue.hpp> @@ -186,8 +187,8 @@ void SessionListener::StoreSession( bool bAsync ) Sequence< PropertyValue > args(1); args[0] = PropertyValue("DispatchAsynchron",-1,makeAny(bAsync),PropertyState_DIRECT_VALUE); xDispatch->dispatch(aURL, args); - } catch (const css::uno::Exception& e) { - SAL_WARN("fwk.session",e); + } catch (const css::uno::Exception&) { + TOOLS_WARN_EXCEPTION("fwk.session", ""); // save failed, but tell manager to go on if we haven't yet dispatched the request // in case of synchronous saving the notification is done by the caller if ( bAsync && m_rSessionManager.is() ) @@ -214,8 +215,8 @@ void SessionListener::QuitSessionQuietly() Sequence< PropertyValue > args(1); args[0] = PropertyValue("DispatchAsynchron",-1,makeAny(false),PropertyState_DIRECT_VALUE); xDispatch->dispatch(aURL, args); - } catch (const css::uno::Exception& e) { - SAL_WARN("fwk.session",e); + } catch (const css::uno::Exception&) { + TOOLS_WARN_EXCEPTION("fwk.session", ""); } } @@ -302,8 +303,8 @@ sal_Bool SAL_CALL SessionListener::doRestore() xDispatch->dispatch(aURL, args); m_bRestored = true; - } catch (const css::uno::Exception& e) { - SAL_WARN("fwk.session",e); + } catch (const css::uno::Exception&) { + TOOLS_WARN_EXCEPTION("fwk.session", ""); } return m_bRestored; |