summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-01-31 20:40:10 +0100
committerEike Rathke <erack@redhat.com>2012-01-31 20:40:10 +0100
commit78997434dd813e7a8d949e510a9de8bbf77b8025 (patch)
tree277f3981d7759d7f574de60bcdcc56c22e4a6825
parentc7aa517c79f12b6bfe97f2b0a3e27bc6532a172a (diff)
Revert "Prevent excessive references to single token instance during fill."
This reverts commit e2b11f4fd79dce4116badb0ecf6477546ca5d0d4. To be replaced with a different solution.
-rw-r--r--sc/inc/cell.hxx2
-rw-r--r--sc/inc/formularesult.hxx12
-rw-r--r--sc/source/core/data/cell.cxx5
-rw-r--r--sc/source/core/data/table4.cxx1
4 files changed, 0 insertions, 20 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index 3bc7aee92b1f..52244f6dca93 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -535,8 +535,6 @@ public:
bool IsMultilineResult();
void MaybeInterpret();
-
- void ResetFormulaResult();
};
// Iterator for references in a formula cell
diff --git a/sc/inc/formularesult.hxx b/sc/inc/formularesult.hxx
index 94c62f83bbea..c1cb90609275 100644
--- a/sc/inc/formularesult.hxx
+++ b/sc/inc/formularesult.hxx
@@ -117,8 +117,6 @@ public:
mpToken->DecRef();
}
- inline void Reset();
-
/** Well, guess what ... */
inline ScFormulaResult & operator=( const ScFormulaResult & r );
@@ -218,16 +216,6 @@ public:
inline ScMatrixFormulaCellToken* GetMatrixFormulaCellTokenNonConst();
};
-inline void ScFormulaResult::Reset()
-{
- ResetToDefaults();
-
- if (mbToken && mpToken)
- mpToken->DecRef();
-
- mbToken = true;
- mpToken = NULL;
-}
inline void ScFormulaResult::ResetToDefaults()
{
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 1f89aeda6a54..2f3df26edcbf 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -2041,11 +2041,6 @@ void ScFormulaCell::MaybeInterpret()
Interpret();
}
-void ScFormulaCell::ResetFormulaResult()
-{
- aResult.Reset();
-}
-
EditTextObject* ScFormulaCell::CreateURLObject()
{
String aCellText;
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 6a21a07b7f9a..dac41110b777 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -429,7 +429,6 @@ void ScTable::FillFormula(sal_uLong& /* nFormulaCounter */, bool /* bFirst */, S
pDocument->SetNoListening( true ); // noch falsche Referenzen
ScAddress aAddr( nDestCol, nDestRow, nTab );
ScFormulaCell* pDestCell = new ScFormulaCell( *pSrcCell, *pDocument, aAddr );
- pDestCell->ResetFormulaResult(); // formula cell is interpreted later during fill.
aCol[nDestCol].Insert(nDestRow, pDestCell);
if ( bLast && pDestCell->GetMatrixFlag() )