diff options
Diffstat (limited to 'sc/source/ui/unoobj/datauno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index a1ee63dc8b26..e00e2c68b580 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -2419,7 +2419,7 @@ void ScUnnamedDatabaseRangesObj::setByTable( const table::CellRangeAddress& aRan throw uno::RuntimeException(); // no other exceptions specified } -uno::Any ScUnnamedDatabaseRangesObj::getByTable( const sal_Int32 nTab ) +uno::Any ScUnnamedDatabaseRangesObj::getByTable( sal_Int32 nTab ) throw(uno::RuntimeException, lang::IndexOutOfBoundsException, container::NoSuchElementException) @@ -2429,7 +2429,8 @@ uno::Any ScUnnamedDatabaseRangesObj::getByTable( const sal_Int32 nTab ) { if ( pDocShell->GetDocument()->GetTableCount() <= nTab ) throw lang::IndexOutOfBoundsException(); - uno::Reference<sheet::XDatabaseRange> xRange( new ScDatabaseRangeObj(pDocShell, (SCTAB) nTab) ); + uno::Reference<sheet::XDatabaseRange> xRange( + new ScDatabaseRangeObj(pDocShell, static_cast<SCTAB>(nTab))); if (xRange.is()) return uno::makeAny(xRange); else |