From 4cf69df2f543b023f4ec3d4279c5ac11a2a819d9 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 21 Feb 2015 02:41:13 +0100 Subject: nitpicks Change-Id: I743a35a164b6d3c84e9e7e38b2e0097e1eeb1ed6 --- sc/qa/unit/ucalc.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sc/qa') diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index b200c1e09eab..1d385f37dfc8 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -1235,23 +1235,23 @@ void Test::testHorizontalAttrIterator() // some numeric data for (SCCOL i = 1; i <= 4; ++i) - for (SCCOL j = 1; j <= 4; ++j) - m_pDoc->SetValue(ScAddress(i,j,0), i*10+j); + for (SCROW j = 1; j <= 4; ++j) + m_pDoc->SetValue(ScAddress(i,j,0), i*10+j); { const int aChecks[][3] = { {1, 2, 1}, {1, 2, 2} }; size_t nCheckLen = SAL_N_ELEMENTS(aChecks); ScHorizontalAttrIterator aIter(m_pDoc, 0, 0, 0, 3, 3); - SCCOL rCol1, rCol2; - SCROW rRow; + SCCOL nCol1, nCol2; + SCROW nRow; size_t nCheckPos = 0; - for (const ScPatternAttr* pAttr = aIter.GetNext(rCol1, rCol2, rRow); pAttr; pAttr = aIter.GetNext(rCol1, rCol2, rRow), ++nCheckPos) + for (const ScPatternAttr* pAttr = aIter.GetNext(nCol1, nCol2, nRow); pAttr; pAttr = aIter.GetNext(nCol1, nCol2, nRow), ++nCheckPos) { CPPUNIT_ASSERT_MESSAGE("Iteration longer than expected.", nCheckPos < nCheckLen); - CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][0], static_cast(rCol1)); - CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][1], static_cast(rCol2)); - CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][2], static_cast(rRow)); + CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][0], static_cast(nCol1)); + CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][1], static_cast(nCol2)); + CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][2], static_cast(nRow)); } } -- cgit