summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbanames.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbanames.cxx')
-rw-r--r--sc/source/ui/vba/vbanames.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index 94460328b676..c93fdbac564b 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -77,10 +77,10 @@ ScVbaNames::getScDocument()
uno::Reference< frame::XModel > xModel( getModel() , uno::UNO_QUERY_THROW );
ScTabViewShell * pTabViewShell = excel::getBestViewShell( xModel );
if ( !pTabViewShell )
- throw uno::RuntimeException( "No ViewShell available", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException( "No ViewShell available" );
ScViewData* pViewData = pTabViewShell->GetViewData();
if ( !pViewData )
- throw uno::RuntimeException( "No ViewData available", uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException( "No ViewData available" );
return pViewData->GetDocument();
}
@@ -119,8 +119,7 @@ ScVbaNames::Add( const css::uno::Any& Name ,
sResult = sName.copy( nIndex );
sName = sResult ;
if ( !ScRangeData::IsNameValid( sName , getScDocument() ) )
- throw uno::RuntimeException( "This Name is not valid .",
- uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException( "This Name is not valid ." );
}
}
uno::Reference< table::XCellRange > xUnoRange;