diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-20 15:15:06 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-20 15:32:48 +0000 |
commit | e92c8bc822cad0ea7c0eecc9a428b6abf1b3d62a (patch) | |
tree | 0040179e2bc24176693e28e7dbbda972d20e0662 /sc | |
parent | a5a625a6e69d27f93c0d1fe4123869629930d2b8 (diff) |
fix comments
Change-Id: I5b6d1c47805e9f4258b7f7977dc296ca4235986e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table3.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index eb3c361e25aa..d344218bcf81 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2749,7 +2749,7 @@ void ScTable::TopTenQuery( ScQueryParam& rParam ) QuickSort( pArray.get(), nRow1, rParam.nRow2 ); ScSortInfo** ppInfo = pArray->GetFirstArray(); SCSIZE nValidCount = nCount; - // Don't count note or blank cells, they are sorted at the end + // Don't count note or blank cells, they are sorted to the end while (nValidCount > 0 && ppInfo[nValidCount-1]->maCell.isEmpty()) nValidCount--; // Don't count Strings, they are between Value and blank @@ -2758,7 +2758,7 @@ void ScTable::TopTenQuery( ScQueryParam& rParam ) if ( nValidCount > 0 ) { if ( rItem.meType == ScQueryEntry::ByString ) - { // this will be nothing + { // by string ain't going to work rItem.meType = ScQueryEntry::ByValue; rItem.mfVal = 10; // 10 and 10% respectively } @@ -3037,7 +3037,7 @@ bool ScTable::CreateExcelQuery(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow SCTAB nDBTab = (rQueryParam.nTab == SCTAB_MAX ? nTab : rQueryParam.nTab); SCROW nDBRow1 = rQueryParam.nRow1; SCCOL nDBCol2 = rQueryParam.nCol2; - // First row must be column header + // First row must be column headers while (bValid && (nCol <= nCol2)) { OUString aQueryStr; @@ -3200,7 +3200,7 @@ bool ScTable::CreateStarQuery(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 rEntry.eOp = SC_EQUAL; } - // Forth column values + // Fourth column values if (bValid) { OUString aStr; @@ -3225,9 +3225,9 @@ bool ScTable::CreateQueryParam(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow for (i=0; i < nCount; i++) rQueryParam.GetEntry(i).Clear(); - // Standard query tabel + // Standard query table bool bValid = CreateStarQuery(nCol1, nRow1, nCol2, nRow2, rQueryParam); - // Excel Query tabel + // Excel Query table if (!bValid) bValid = CreateExcelQuery(nCol1, nRow1, nCol2, nRow2, rQueryParam); |