summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-05-12 16:21:15 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-05-20 00:46:51 -0400
commitb79294b824506dd78a7e0e4bbf6250343a618a26 (patch)
tree13a43cbeb9d50a395d1441b0e29e933268a00f82 /sc/source/ui/unoobj
parentb7a805c683a1143f63fa2bac88a8ae2ae95f6875 (diff)
Let's not change the signature of UNO call & prefer static_cast.
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/datauno.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx
index 860db1b52..f192242ad 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