summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/docshell/macromgr.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/macromgr.cxx b/sc/source/ui/docshell/macromgr.cxx
index 263ed4e617e4..b4e0e336d82c 100644
--- a/sc/source/ui/docshell/macromgr.cxx
+++ b/sc/source/ui/docshell/macromgr.cxx
@@ -132,7 +132,9 @@ void ScMacroManager::InitUserFuncData()
Reference< container::XContainer > xModuleContainer;
SfxObjectShell* pShell = mpDoc->GetDocumentShell();
- if (pShell && !pShell->GetBasicManager()->GetName().isEmpty())
+ if (!pShell)
+ return;
+ if (!pShell->GetBasicManager()->GetName().isEmpty())
{
sProjectName = pShell->GetBasicManager()->GetName();
}
@@ -151,7 +153,7 @@ void ScMacroManager::InitUserFuncData()
xModuleContainer->addContainerListener( mxContainerListener );
}
}
- catch( uno::Exception& )
+ catch (const uno::Exception&)
{
}
}