summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 11:13:07 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 11:18:41 +0200
commitb37b7b5cd5a4b7acdee4736008f3947317dad4ce (patch)
tree7d07a383c81106ed9cdd48ddaff564ed0650c365 /test
parentf9a6e75e21e9919a405a1964d85345a1c0634067 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Id036f867e75d03d8347cc32a1011c5cdda1dcc73
Diffstat (limited to 'test')
-rw-r--r--test/source/sheet/xspreadsheets2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/sheet/xspreadsheets2.cxx b/test/source/sheet/xspreadsheets2.cxx
index 187a25e0ec23..5da8e96e1f27 100644
--- a/test/source/sheet/xspreadsheets2.cxx
+++ b/test/source/sheet/xspreadsheets2.cxx
@@ -306,7 +306,7 @@ uno::Reference< sheet::XNamedRanges> XSpreadsheets2::getNamedRanges(uno::Referen
void XSpreadsheets2::importSheetToCopy()
{
uno::Reference< container::XNameAccess> xSrcNameAccess(init(),UNO_QUERY_THROW);
- xSrcSheet = uno::Reference< sheet::XSpreadsheet >( xSrcNameAccess->getByName(aSrcSheetName), UNO_QUERY_THROW);
+ xSrcSheet.set( xSrcNameAccess->getByName(aSrcSheetName), UNO_QUERY_THROW);
uno::Reference< lang::XComponent > xDestComponent;
if (!xDestComponent.is())
@@ -322,11 +322,11 @@ void XSpreadsheets2::importSheetToCopy()
}
else
{
- xDestDoc = uno::Reference< sheet::XSpreadsheetDocument >(xDestComponent,UNO_QUERY_THROW);
+ xDestDoc.set(xDestComponent,UNO_QUERY_THROW);
}
uno::Reference< container::XNameAccess > xDestSheetNameAccess (xDestDoc->getSheets(), UNO_QUERY_THROW);
- xDestSheet = uno::Reference< sheet::XSpreadsheet > ( xDestSheetNameAccess->getByName(aSrcSheetName), UNO_QUERY_THROW);
+ xDestSheet.set( xDestSheetNameAccess->getByName(aSrcSheetName), UNO_QUERY_THROW);
}
bool XSpreadsheets2::isExternalReference(const OUString& aDestContent, const OUString& aSrcContent )