diff options
author | Jens Carl <j.carl43@gmx.de> | 2017-08-08 09:54:47 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-08 12:36:08 +0200 |
commit | 1f54caef187dc73acda934808cc5d8d91f72b882 (patch) | |
tree | 7680180b1dbdaee6f4652588785cc52b8d359aa1 /test/source | |
parent | 40ea896e5c378c36ab41dbbbb06b43b8ec2c231f (diff) |
Fix for failing tests of xcellseries with ScCellRangeObj ...
... (CppunitTest_sc_cellrangeobj) introduced by
commit 27cbca2c8dccbbb299621b49e5ffd836188202f0.
Change-Id: I97be4f70de52abd974bf1198063d28f2ff419dbd
Reviewed-on: https://gerrit.libreoffice.org/40871
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/sheet/xcellseries.cxx | 7 | ||||
-rw-r--r-- | test/source/sheet/xusedareacursor.cxx | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/test/source/sheet/xcellseries.cxx b/test/source/sheet/xcellseries.cxx index 222fce29ef7e..61dbcecdc751 100644 --- a/test/source/sheet/xcellseries.cxx +++ b/test/source/sheet/xcellseries.cxx @@ -10,7 +10,6 @@ #include <test/sheet/xcellseries.hxx> #include <com/sun/star/sheet/XCellSeries.hpp> -#include <com/sun/star/sheet/XSpreadsheet.hpp> #include <com/sun/star/table/XCellRange.hpp> #include "cppunit/extensions/HelperMacros.h" @@ -22,8 +21,7 @@ namespace apitest { void XCellSeries::testFillAuto() { - uno::Reference< sheet::XSpreadsheet > xSheet(init(), UNO_QUERY_THROW); - uno::Reference<table::XCellRange> xCellRange(xSheet->createCursor(), UNO_QUERY_THROW); + uno::Reference<table::XCellRange> xCellRange(init(), UNO_QUERY_THROW); sal_Int32 maValue = xCellRange->getCellByPosition(maStartX, maStartY)->getValue(); uno::Reference<table::XCellRange> xCellRangeH(xCellRange->getCellRangeByPosition(maStartX, maStartY, maStartX + 2, maStartY), UNO_QUERY_THROW); @@ -56,8 +54,7 @@ void XCellSeries::testFillAuto() void XCellSeries::testFillSeries() { - uno::Reference< sheet::XSpreadsheet > xSheet(init(), UNO_QUERY_THROW); - uno::Reference<table::XCellRange> xCellRange(xSheet->createCursor(), UNO_QUERY_THROW); + uno::Reference<table::XCellRange> xCellRange(init(), UNO_QUERY_THROW); sal_Int32 maValue = xCellRange->getCellByPosition(maStartX, maStartY)->getValue(); uno::Reference<table::XCellRange> xCellRangeH(xCellRange->getCellRangeByPosition(maStartX, maStartY, maStartX + 2, maStartY), UNO_QUERY_THROW); diff --git a/test/source/sheet/xusedareacursor.cxx b/test/source/sheet/xusedareacursor.cxx index fdde5f6cd52f..7613842bd5dc 100644 --- a/test/source/sheet/xusedareacursor.cxx +++ b/test/source/sheet/xusedareacursor.cxx @@ -26,7 +26,7 @@ namespace apitest { void XUsedAreaCursor::testGotoStartOfUsedArea() { - uno::Reference< sheet::XSpreadsheet > xSheet(init(), UNO_QUERY_THROW); + uno::Reference< sheet::XSpreadsheet > xSheet(getXSpreadsheet(), UNO_QUERY_THROW); uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor(xSheet->createCursor(), UNO_QUERY_THROW); uno::Reference< sheet::XCellRangeAddressable> xCellRangeAddressable(xSheetCellCursor, UNO_QUERY_THROW); @@ -60,7 +60,7 @@ void XUsedAreaCursor::testGotoStartOfUsedArea() void XUsedAreaCursor::testGotoEndOfUsedArea() { - uno::Reference< sheet::XSpreadsheet > xSheet(init(), UNO_QUERY_THROW); + uno::Reference< sheet::XSpreadsheet > xSheet(getXSpreadsheet(), UNO_QUERY_THROW); uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor(xSheet->createCursor(), UNO_QUERY_THROW); uno::Reference< sheet::XCellRangeAddressable> xCellRangeAddressable(xSheetCellCursor, UNO_QUERY_THROW); |