summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/consoli.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-20 22:24:57 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-22 21:49:20 -0400
commit0327a7cdddb88a4841dc1be63fa0ce78ab35fc2d (patch)
tree944b4a0583a3425f02886dd6e6f9a2c1144dca92 /sc/source/core/tool/consoli.cxx
parent6de145fdfa60737b4d3c4cb164caab5a44aa6c45 (diff)
More on reducing the use of ScDocument::PutCell().
I'm getting tired of this already... Change-Id: I77c4f82fc61c9371e8a07fa559088851667949d6
Diffstat (limited to 'sc/source/core/tool/consoli.cxx')
-rw-r--r--sc/source/core/tool/consoli.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/tool/consoli.cxx b/sc/source/core/tool/consoli.cxx
index dfbf791b0b15..2d0e129f50aa 100644
--- a/sc/source/core/tool/consoli.cxx
+++ b/sc/source/core/tool/consoli.cxx
@@ -749,8 +749,8 @@ void ScConsData::OutputToDocument( ScDocument* pDestDoc, SCCOL nCol, SCROW nRow,
aRefArr.AddOpCode(ocStop);
ScAddress aDest( sal::static_int_cast<SCCOL>(nCol+nArrX),
sal::static_int_cast<SCROW>(nRow+nArrY+nPos), nTab );
- ScBaseCell* pCell = new ScFormulaCell( pDestDoc, aDest, &aRefArr );
- pDestDoc->PutCell( aDest.Col(), aDest.Row(), aDest.Tab(), pCell );
+ ScFormulaCell* pCell = new ScFormulaCell( pDestDoc, aDest, &aRefArr );
+ pDestDoc->SetFormulaCell(aDest, pCell);
}
}
@@ -771,8 +771,8 @@ void ScConsData::OutputToDocument( ScDocument* pDestDoc, SCCOL nCol, SCROW nRow,
aArr.AddDoubleReference(aCRef);
aArr.AddOpCode(ocClose);
aArr.AddOpCode(ocStop);
- ScBaseCell* pCell = new ScFormulaCell( pDestDoc, aDest, &aArr );
- pDestDoc->PutCell( aDest.Col(), aDest.Row(), aDest.Tab(), pCell );
+ ScFormulaCell* pCell = new ScFormulaCell( pDestDoc, aDest, &aArr );
+ pDestDoc->SetFormulaCell(aDest, pCell);
}
}