From 389da66dfc96d06c407bff156c4ea21e940c5e06 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 May 2017 15:40:42 +0200 Subject: remove unused uno::Reference vars found by temporarily marking Reference as SAL_WARN_UNUSED. Change-Id: I18809b62654467f890016adcc92576980ced393b Reviewed-on: https://gerrit.libreoffice.org/37511 Tested-by: Jenkins Reviewed-by: Noel Grandin --- test/source/sheet/xspreadsheets2.cxx | 2 +- test/source/text/xtextcontent.cxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'test/source') diff --git a/test/source/sheet/xspreadsheets2.cxx b/test/source/sheet/xspreadsheets2.cxx index fb32ea3173c2..7d0e24527685 100644 --- a/test/source/sheet/xspreadsheets2.cxx +++ b/test/source/sheet/xspreadsheets2.cxx @@ -247,7 +247,7 @@ void XSpreadsheets2::testImportCellStyle() importSheetToCopy(); uno::Reference< table::XCell > xSrcCell = xSrcSheet->getCellByPosition(3,0); - uno::Reference< table::XCell > xDestCell = xDestSheet->getCellByPosition(3,0); + xDestSheet->getCellByPosition(3,0); //new style created in dest uno::Reference< beans::XPropertySet > xSrcCellPropSet (xSrcCell, UNO_QUERY_THROW); diff --git a/test/source/text/xtextcontent.cxx b/test/source/text/xtextcontent.cxx index 6f6b00ff87c1..528241a8dd8b 100644 --- a/test/source/text/xtextcontent.cxx +++ b/test/source/text/xtextcontent.cxx @@ -28,7 +28,6 @@ void XTextContent::testGetAnchor() void XTextContent::testAttach() { uno::Reference< text::XTextContent > xTextContent(init(), UNO_QUERY_THROW); - uno::Reference< text::XTextRange > xAnchor = xTextContent->getAnchor(); uno::Reference< text::XTextContent > xContent(getTextContent(), UNO_QUERY_THROW); uno::Reference< text::XTextRange > xRange(getTextRange(), UNO_QUERY_THROW); -- cgit