Kaydet (Commit) 4cabd37b authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Let's not change the signature of UNO call & prefer static_cast.

üst 52dace9a
...@@ -683,7 +683,7 @@ public: ...@@ -683,7 +683,7 @@ public:
virtual void SAL_CALL setByTable( const ::com::sun::star::table::CellRangeAddress& aRange ) virtual void SAL_CALL setByTable( const ::com::sun::star::table::CellRangeAddress& aRange )
throw(::com::sun::star::uno::RuntimeException, throw(::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::IndexOutOfBoundsException ); ::com::sun::star::lang::IndexOutOfBoundsException );
virtual com::sun::star::uno::Any SAL_CALL getByTable( const sal_Int32 nTab ) virtual com::sun::star::uno::Any SAL_CALL getByTable( sal_Int32 nTab )
throw(::com::sun::star::uno::RuntimeException, throw(::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::container::NoSuchElementException ); ::com::sun::star::container::NoSuchElementException );
......
...@@ -2419,7 +2419,7 @@ void ScUnnamedDatabaseRangesObj::setByTable( const table::CellRangeAddress& aRan ...@@ -2419,7 +2419,7 @@ void ScUnnamedDatabaseRangesObj::setByTable( const table::CellRangeAddress& aRan
throw uno::RuntimeException(); // no other exceptions specified 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, throw(uno::RuntimeException,
lang::IndexOutOfBoundsException, lang::IndexOutOfBoundsException,
container::NoSuchElementException) container::NoSuchElementException)
...@@ -2429,7 +2429,8 @@ uno::Any ScUnnamedDatabaseRangesObj::getByTable( const sal_Int32 nTab ) ...@@ -2429,7 +2429,8 @@ uno::Any ScUnnamedDatabaseRangesObj::getByTable( const sal_Int32 nTab )
{ {
if ( pDocShell->GetDocument()->GetTableCount() <= nTab ) if ( pDocShell->GetDocument()->GetTableCount() <= nTab )
throw lang::IndexOutOfBoundsException(); 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()) if (xRange.is())
return uno::makeAny(xRange); return uno::makeAny(xRange);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment