diff options
Diffstat (limited to 'test/source/sheet/xdatapilottable2.cxx')
-rw-r--r-- | test/source/sheet/xdatapilottable2.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/source/sheet/xdatapilottable2.cxx b/test/source/sheet/xdatapilottable2.cxx index d54a12f425bb..dc23c1045cb4 100644 --- a/test/source/sheet/xdatapilottable2.cxx +++ b/test/source/sheet/xdatapilottable2.cxx @@ -63,10 +63,9 @@ void XDataPilotTable2::testGetDrillDownData() buildDataFields(xDPTable); buildResultCells(xDPTable); - for (std::vector<table::CellAddress>::iterator itr = maResultCells.begin(); - itr != maResultCells.end(); ++itr) + for (const auto& rResultCell : maResultCells) { - sheet::DataPilotTablePositionData aPosData = xDPTable->getPositionData(*itr); + sheet::DataPilotTablePositionData aPosData = xDPTable->getPositionData(rResultCell); Any aTempAny = aPosData.PositionData; sheet::DataPilotTableResultData aResData; CPPUNIT_ASSERT(aTempAny >>= aResData); @@ -74,7 +73,7 @@ void XDataPilotTable2::testGetDrillDownData() sheet::DataResult aRes = aResData.Result; double nVal = aRes.Value; - Sequence< Sequence<Any> > aData = xDPTable->getDrillDownData(*itr); + Sequence< Sequence<Any> > aData = xDPTable->getDrillDownData(rResultCell); double sum = 0; if( aData.getLength() > 1 ) |