summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbadocumentbase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbadocumentbase.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbadocumentbase.cxx29
1 files changed, 13 insertions, 16 deletions
diff --git a/vbahelper/source/vbahelper/vbadocumentbase.cxx b/vbahelper/source/vbahelper/vbadocumentbase.cxx
index 4195199c58..6514be874e 100644
--- a/vbahelper/source/vbahelper/vbadocumentbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentbase.cxx
@@ -173,29 +173,26 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
// The boolean parameter DeliverOwnership tells objects vetoing the close process that they may
// assume ownership if they object the closure by throwing a CloseVetoException
// Here we give up ownership. To be on the safe side, catch possible veto exception anyway.
- try{
- xCloseable->close(sal_True);
- }
- catch( util::CloseVetoException )
- {
- //close is cancelled, nothing to do
+ try {
+ xCloseable->close(sal_True);
+ }
+ catch( util::CloseVetoException ) {
+ //close is cancelled, nothing to do
+ }
}
- }
// If close is not supported by this model - try to dispose it.
// But if the model disagree with a reset request for the modify state
// we shouldn't do so. Otherwhise some strange things can happen.
- else
- {
+ else
+ {
uno::Reference< lang::XComponent > xDisposable ( getModel(), uno::UNO_QUERY );
if ( xDisposable.is() )
- {
- // To be on the safe side, catch possible veto exception anyway.
- try
- {
- xDisposable->dispose();
- }
- catch( uno::Exception& )
{
+ // To be on the safe side, catch possible veto exception anyway.
+ try {
+ xDisposable->dispose();
+ }
+ catch( uno::Exception& ) {}
}
}
}