summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-05-10 20:09:04 +0100
committerNoel Power <noel.power@suse.com>2013-05-10 20:10:33 +0100
commit5c20d05f925c9142f023ed910a1205acfc734c65 (patch)
tree7916ab8ddf791b48064e2c7d702fb56c53313885
parentce5c02e8b16c4bb2e8df75bc7bce80b33696ce30 (diff)
try fix build failure ( on some platforms ) uno::makeAny( 1 )
Change-Id: I0107fc919a785195a1247c08ae019ed3f48f7e7d
-rw-r--r--sc/source/ui/vba/vbanames.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index 9cf542bbbaab..4abdd11e00f0 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -196,7 +196,8 @@ ScVbaNames::Add( const css::uno::Any& Name ,
if ( !xRange.is() )
xRange = new ScVbaRange( mxParent, mxContext, xUnoRange );
- uno::Reference< excel::XRange > xArea( xRange->Areas( uno::makeAny( 1 ) ), uno::UNO_QUERY );
+ uno::Reference< excel::XRange > xArea( xRange->Areas( uno::makeAny( sal_Int32(1) ) ), uno::UNO_QUERY );
+
uno::Any xAny = xArea->getCellRange() ;
uno::Reference< sheet::XCellRangeAddressable > thisRangeAdd( xAny, ::uno::UNO_QUERY_THROW);