diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-16 14:41:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-16 14:41:22 +0100 |
commit | 7882a89147e8e33d8f7980756aa2f3d468cbd5b4 (patch) | |
tree | 5b73d88bc9088408292d748d9996c363b3d031c4 /sd | |
parent | c998206afaace817b8c6a5ea4a661af68fa5fdcc (diff) |
loplugin:loopvartoosmall
Change-Id: Ib5e7b7ffcd1e6421eb08f7b7d4cf16d0353ad6fa
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/tiledrendering/tiledrendering.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx index 770f03bd7b22..1c994797407e 100644 --- a/sd/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx @@ -572,9 +572,9 @@ void SdTiledRenderingTest::testInsertPage() comphelper::dispatchCommand(".uno:InsertPage", aArgs); // Verify inserted slides - for(unsigned nIterator=0; nIterator < m_aPageList.size(); nIterator++) + for(auto i: m_aPageList) { - SdPage* pPage = pDoc->GetSdPage(m_aPageList[nIterator], PK_STANDARD); + SdPage* pPage = pDoc->GetSdPage(i, PK_STANDARD); CPPUNIT_ASSERT(pPage); } @@ -585,9 +585,9 @@ void SdTiledRenderingTest::testInsertPage() comphelper::dispatchCommand(".uno:DeletePage", aArgs); // Verify deleted slides - for(unsigned nIterator=0; nIterator < m_aPageList.size(); nIterator++) + for(auto i: m_aPageList) { - SdPage* pPage = pDoc->GetSdPage(m_aPageList[nIterator], PK_STANDARD); + SdPage* pPage = pDoc->GetSdPage(i, PK_STANDARD); CPPUNIT_ASSERT(pPage == nullptr); } @@ -598,9 +598,9 @@ void SdTiledRenderingTest::testInsertPage() comphelper::dispatchCommand(".uno:Undo", aArgs); // Verify inserted slides - for(unsigned nIterator=0; nIterator < m_aPageList.size(); nIterator++) + for(auto i: m_aPageList) { - SdPage* pPage = pDoc->GetSdPage(m_aPageList[nIterator], PK_STANDARD); + SdPage* pPage = pDoc->GetSdPage(i, PK_STANDARD); CPPUNIT_ASSERT(pPage); } @@ -611,9 +611,9 @@ void SdTiledRenderingTest::testInsertPage() comphelper::dispatchCommand(".uno:Redo", aArgs); // Verify deleted slides - for(unsigned nIterator=0; nIterator < m_aPageList.size(); nIterator++) + for(auto i: m_aPageList) { - SdPage* pPage = pDoc->GetSdPage(m_aPageList[nIterator], PK_STANDARD); + SdPage* pPage = pDoc->GetSdPage(i, PK_STANDARD); CPPUNIT_ASSERT(pPage == nullptr); } |