diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/source/screenshot_test.cxx | 4 | ||||
-rw-r--r-- | test/source/sheet/xdatapilottable2.cxx | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index fbe6ca10b501..fc4bf5acf447 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -222,9 +222,9 @@ void ScreenshotTest::dumpDialogToPath(const OString& rUIXMLDescription) void ScreenshotTest::processAllKnownDialogs() { - for (mapType::const_iterator i = getKnownDialogs().begin(); i != getKnownDialogs().end(); ++i) + for (const auto& rDialog : getKnownDialogs()) { - ScopedVclPtr<VclAbstractDialog> pDlg(createDialogByID((*i).second)); + ScopedVclPtr<VclAbstractDialog> pDlg(createDialogByID(rDialog.second)); if (pDlg) { 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 ) |