diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-25 13:54:48 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-26 01:41:20 -0400 |
commit | 04a04dd7915f82186dd0ec5d277bbccb3b19d15f (patch) | |
tree | cbc69f7412613c194a431d75760e84b329c535d8 /sc | |
parent | 1772a834134fab77dd671c4255aa3cf6ff3755af (diff) |
Remove a variant of constructor from ScCellIterator.
It's redundant.
Change-Id: I0aae329124453a5976b2a74f6290b100ce955a4e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/dociter.hxx | 8 | ||||
-rw-r--r-- | sc/source/core/data/dociter.cxx | 16 | ||||
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 6 | ||||
-rw-r--r-- | sc/source/core/tool/interpr5.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 2 |
7 files changed, 9 insertions, 29 deletions
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index a7994a62d5e2..fabbbbe208f5 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -231,13 +231,9 @@ private: void init(); bool getCurrent(); + public: - ScCellIterator(ScDocument* pDoc, - SCCOL nSCol, SCROW nSRow, SCTAB nSTab, - SCCOL nECol, SCROW nERow, SCTAB nETab, - bool bSTotal = false); - ScCellIterator(ScDocument* pDoc, - const ScRange& rRange, bool bSTotal = false); + ScCellIterator( ScDocument* pDoc, const ScRange& rRange, bool bSTotal = false ); const ScAddress& GetPos() const { return maCurPos; } diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 1ee51bcb395b..2b6e568267a6 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -936,22 +936,6 @@ bool ScDBQueryDataIterator::GetNext(Value& rValue) return mpData->getNext(rValue); } -// ============================================================================ - -ScCellIterator::ScCellIterator( ScDocument* pDoc, - SCCOL nSCol, SCROW nSRow, SCTAB nSTab, - SCCOL nECol, SCROW nERow, SCTAB nETab, bool bSTotal ) : - mpDoc(pDoc), - maStartPos(nSCol, nSRow, nSTab), - maEndPos(nECol, nERow, nETab), - mnIndex(0), - mbSubTotal(bSTotal), - meCurType(CELLTYPE_NONE), - mfCurValue(0.0) -{ - init(); -} - ScCellIterator::ScCellIterator( ScDocument* pDoc, const ScRange& rRange, bool bSTotal ) : mpDoc(pDoc), maStartPos(rRange.aStart), diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index e7d522a6115d..7aad0cc5438d 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -1121,7 +1121,7 @@ sal_uInt16 ScDetectiveFunc::FindSuccLevel( SCCOL nCol1, SCROW nRow1, SCCOL nCol2 sal_uInt16 nResult = nLevel; sal_Bool bDelete = ( nDeleteLevel && nLevel == nDeleteLevel-1 ); - ScCellIterator aCellIter( pDoc, 0,0, nTab, MAXCOL,MAXROW, nTab ); + ScCellIterator aCellIter( pDoc, ScRange(0, 0, nTab, MAXCOL, MAXROW, nTab) ); for (bool bHas = aCellIter.first(); bHas; bHas = aCellIter.next()) { if (aCellIter.getType() != CELLTYPE_FORMULA) @@ -1356,7 +1356,7 @@ sal_Bool ScDetectiveFunc::MarkInvalid(sal_Bool& rOverflow) sal_Bool bMarkEmpty = !pData->IsIgnoreBlank(); SCROW nNextRow = nRow1; SCROW nRow; - ScCellIterator aCellIter( pDoc, nCol,nRow1,nTab, nCol,nRow2,nTab ); + ScCellIterator aCellIter( pDoc, ScRange(nCol, nRow1, nTab, nCol, nRow2, nTab) ); for (bool bHas = aCellIter.first(); bHas && nInsCount < SC_DET_MAXCIRCLE; bHas = aCellIter.next()) { SCROW nCellRow = aCellIter.GetPos().Row(); @@ -1394,7 +1394,7 @@ sal_Bool ScDetectiveFunc::MarkInvalid(sal_Bool& rOverflow) void ScDetectiveFunc::GetAllPreds(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, vector<ScTokenRef>& rRefTokens) { - ScCellIterator aIter(pDoc, nCol1, nRow1, nTab, nCol2, nRow2, nTab); + ScCellIterator aIter(pDoc, ScRange(nCol1, nRow1, nTab, nCol2, nRow2, nTab)); for (bool bHas = aIter.first(); bHas; bHas = aIter.next()) { if (aIter.getType() != CELLTYPE_FORMULA) diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index 28e3b9722b62..857449008d74 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -418,7 +418,7 @@ ScMatrixRef ScInterpreter::CreateMatrixFromDoubleRef( const FormulaToken* pToken { // Scan one column at a time, to pass a sequence of values to matrix in one call. ScCellIterator aCellIter( - pDok, nCol, nRow1, nTab1, nCol, nRow2, nTab2); + pDok, ScRange(nCol, nRow1, nTab1, nCol, nRow2, nTab2)); SCROW nPrevRow = -2, nThisRow = -2; diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 584219c2f57d..8057551ae754 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2061,7 +2061,7 @@ void ScXMLExport::_ExportAutoStyles() for (SCTAB nTab=0; nTab<nTabCount; ++nTab) if (pDoc->IsStreamValid(nTab)) { - ScCellIterator aIter( pDoc, 0,0,nTab, MAXCOL,MAXROW,nTab ); + ScCellIterator aIter( pDoc, ScRange(0, 0, nTab, MAXCOL, MAXROW, nTab) ); for (bool bHas = aIter.first(); bHas; bHas = aIter.next()) { if (aIter.getType() != CELLTYPE_FORMULA) diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index c4c31449e69d..bb3019eea5ea 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -778,7 +778,7 @@ void ScTransferObj::StripRefs( ScDocument* pDoc, SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); ScRange aRef; - ScCellIterator aIter( pDoc, nStartX, nStartY, nSrcTab, nEndX, nEndY, nSrcTab ); + ScCellIterator aIter( pDoc, ScRange(nStartX, nStartY, nSrcTab, nEndX, nEndY, nSrcTab) ); for (bool bHas = aIter.first(); bHas; bHas = aIter.next()) { if (aIter.getType() != CELLTYPE_FORMULA) diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 2ff086f2a87b..aa403d7ae677 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -3908,7 +3908,7 @@ uno::Reference<sheet::XSheetCellRanges> SAL_CALL ScCellRangesBase::queryDependen SCTAB nTab = lcl_FirstTab(aNewRanges); //! alle Tabellen - ScCellIterator aCellIter( pDoc, 0,0, nTab, MAXCOL,MAXROW, nTab ); + ScCellIterator aCellIter( pDoc, ScRange(0, 0, nTab, MAXCOL, MAXROW, nTab) ); for (bool bHasCell = aCellIter.first(); bHasCell; bHasCell = aCellIter.next()) { if (aCellIter.getType() != CELLTYPE_FORMULA) |