summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbawindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbawindow.cxx')
-rw-r--r--sc/source/ui/vba/vbawindow.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx
index c7e196af3e66..ac89af3c0ab4 100644
--- a/sc/source/ui/vba/vbawindow.cxx
+++ b/sc/source/ui/vba/vbawindow.cxx
@@ -103,13 +103,13 @@ public:
{
ScModelObj* pModel = static_cast< ScModelObj* >( m_xModel.get() );
if ( !pModel )
- throw uno::RuntimeException("Cannot obtain current document", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("Cannot obtain current document" );
ScDocShell* pDocShell = (ScDocShell*)pModel->GetEmbeddedObject();
if ( !pDocShell )
- throw uno::RuntimeException("Cannot obtain docshell", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("Cannot obtain docshell" );
ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel );
if ( !pViewShell )
- throw uno::RuntimeException("Cannot obtain view shell", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("Cannot obtain view shell" );
SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount();
SCTAB nIndex = 0;
@@ -289,7 +289,7 @@ ScVbaWindow::ScrollWorkbookTabs( const uno::Any& /*Sheets*/, const uno::Any& /*P
/*
sal_Int32 nSheets = 0;
sal_Int32 nPosition = 0;
- throw uno::RuntimeException("No Implemented", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("No Implemented" );
sal_Bool bSheets = ( Sheets >>= nSheets );
sal_Bool bPosition = ( Position >>= nPosition );
if ( bSheets || bPosition ) // at least one param specified
@@ -443,7 +443,7 @@ ScVbaWindow::setWindowState( const uno::Any& _windowstate ) throw (uno::RuntimeE
else if (nwindowState == xlNormal)
pWork -> Restore();
else
- throw uno::RuntimeException("Invalid Parameter", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("Invalid Parameter" );
}
}