diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-07 21:31:09 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-07 23:59:55 +0100 |
commit | 91cdf22b88a4f7bec243c8fb187627e766d3294c (patch) | |
tree | dcdef3d5bf46a2922f74501340b5d3352ab94910 /test/source | |
parent | 22606ba1e239075762f7dd0fd8fb89d17a2570f2 (diff) |
Correct and improve test set up of ScDataPilotItemObj
Change-Id: I65fb4a444e7e072004adcc9f9ad7af77a3f9f919
Reviewed-on: https://gerrit.libreoffice.org/68888
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/sheet/datapilotitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/sheet/datapilotitem.cxx b/test/source/sheet/datapilotitem.cxx index 8d5fa8b3bff0..1ebb5e885bac 100644 --- a/test/source/sheet/datapilotitem.cxx +++ b/test/source/sheet/datapilotitem.cxx @@ -11,6 +11,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XIndexAccess.hpp> + #include <com/sun/star/uno/Reference.hxx> #include <cppunit/extensions/HelperMacros.h> @@ -22,8 +23,7 @@ namespace apitest { void DataPilotItem::testProperties() { - uno::Reference< container::XIndexAccess > xIA(init(), UNO_QUERY_THROW); - uno::Reference< beans::XPropertySet > xItem(xIA->getByIndex(0), UNO_QUERY_THROW); + uno::Reference< beans::XPropertySet > xItem(init(), UNO_QUERY_THROW); const OUString propNameIS("IsHidden"); |