diff options
author | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-11-15 21:08:44 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.co.uk> | 2017-11-21 16:09:44 +0530 |
commit | 4b3e4c1c98d0bd4ef5a5e0013dfb7faae0838a67 (patch) | |
tree | 46fb40eb09671bef54630fbcd3c6875f9cbd523a /formula | |
parent | 9c88d6f2c9a1b03bc1f14684ceeceaf7e3e11bc5 (diff) |
cache FormulaToken for doubles
Change-Id: Ic0b4dff6f03ef3f88bd150e798fa2d83dfb0f486
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/token.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 04c4a203284d..2ed68521e720 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -216,6 +216,11 @@ short FormulaToken::GetDoubleType() const return 0; } +void FormulaToken::SetDoubleType( short ) +{ + SAL_WARN( "formula.core", "FormulaToken::SetDoubleType: virtual dummy called" ); +} + svl::SharedString FormulaToken::GetString() const { SAL_WARN( "formula.core", "FormulaToken::GetString: virtual dummy called" ); @@ -1797,6 +1802,11 @@ short FormulaTypedDoubleToken::GetDoubleType() const return mnType; } +void FormulaTypedDoubleToken::SetDoubleType( short nType ) +{ + mnType = nType; +} + bool FormulaTypedDoubleToken::operator==( const FormulaToken& r ) const { return FormulaDoubleToken::operator==( r ) && mnType == r.GetDoubleType(); |