summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-02-21 02:41:13 +0100
committerEike Rathke <erack@redhat.com>2015-02-21 02:47:32 +0100
commit4cf69df2f543b023f4ec3d4279c5ac11a2a819d9 (patch)
tree48a43644b0a0b2d53a27fa40591cbe57759b509e
parenttdf Removed redundant blank lines in sfx2/source/sidebar (Now one line gap) (diff)
downloadcore-4cf69df2f543b023f4ec3d4279c5ac11a2a819d9.tar.gz
core-4cf69df2f543b023f4ec3d4279c5ac11a2a819d9.zip
nitpicks
Change-Id: I743a35a164b6d3c84e9e7e38b2e0097e1eeb1ed6
-rw-r--r--sc/qa/unit/ucalc.cxx16
1 files changed, 8 insertions, 8 deletions
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<int>(rCol1));
- CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][1], static_cast<int>(rCol2));
- CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][2], static_cast<int>(rRow));
+ CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][0], static_cast<int>(nCol1));
+ CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][1], static_cast<int>(nCol2));
+ CPPUNIT_ASSERT_EQUAL(aChecks[nCheckPos][2], static_cast<int>(nRow));
}
}