summaryrefslogtreecommitdiffstats
path: root/unotools/source/config/useroptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/useroptions.cxx')
-rw-r--r--unotools/source/config/useroptions.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index 1e181e8813d6..4cfc3f125358 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -117,14 +117,8 @@ void SvtUserOptions::ChangeListener::changesOccurred (util::ChangesEvent const&
void SvtUserOptions::ChangeListener::disposing (lang::EventObject const& rSource)
{
- try
- {
- uno::Reference<util::XChangesNotifier> xChgNot(rSource.Source, uno::UNO_QUERY_THROW);
+ if (auto xChgNot = rSource.Source.query<util::XChangesNotifier>())
xChgNot->removeChangesListener(this);
- }
- catch (uno::Exception&)
- {
- }
}
SvtUserOptions::Impl::Impl() :