summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/docshell/docsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docsh.cxx')
-rw-r--r--sc/source/ui/docshell/docsh.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 5902ab697789..8aa6855470df 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -999,14 +999,8 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
TOOLS_WARN_EXCEPTION( "sc", "SfxEventHintId::SaveDoc" );
SC_MOD()->SetInSharedDocSaving( false );
- try
- {
- uno::Reference< util::XCloseable > xClose( xModel, uno::UNO_QUERY_THROW );
+ if (auto xClose = xModel.query<util::XCloseable>() )
xClose->close( true );
- }
- catch ( uno::Exception& )
- {
- }
}
}