diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-28 00:54:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-28 01:12:52 -0400 |
commit | 226aefbc5587568c60c966ff22762e77c7838fd4 (patch) | |
tree | de00cac8e6dd9ae3873f850aab695aa24eb8a975 /sc/source/core/tool/cellform.cxx | |
parent | 629c793388f071ff9624e78c578a76eadef2fc34 (diff) |
Reduce calls to ScDocument::GetCell().
Change-Id: I39196eced68d25b6b2ae1378f712564badfc4572
Diffstat (limited to 'sc/source/core/tool/cellform.cxx')
-rw-r--r-- | sc/source/core/tool/cellform.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/cellform.cxx b/sc/source/core/tool/cellform.cxx index d60627b11a05..1ddfaaa4645c 100644 --- a/sc/source/core/tool/cellform.cxx +++ b/sc/source/core/tool/cellform.cxx @@ -136,7 +136,7 @@ void ScCellFormat::GetString( ScRefCellValue& rCell, sal_uLong nFormat, OUString } OUString ScCellFormat::GetString( - const ScDocument& rDoc, const ScAddress& rPos, sal_uLong nFormat, Color** ppColor, + ScDocument& rDoc, const ScAddress& rPos, sal_uLong nFormat, Color** ppColor, SvNumberFormatter& rFormatter, bool bNullVals, bool bFormula, ScForceTextFmt eForceTextFmt, bool bUseStarFormat ) { @@ -180,7 +180,7 @@ OUString ScCellFormat::GetString( break; case CELLTYPE_FORMULA: { - ScFormulaCell* pFCell = static_cast<ScFormulaCell*>(rDoc.GetCell(rPos)); + ScFormulaCell* pFCell = rDoc.GetFormulaCell(rPos); if (bFormula) { pFCell->GetFormula(aString); |