diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-13 16:32:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-13 21:28:16 +0200 |
commit | 1d63489ae7f99545bcd8a6f41496e78ccad3273f (patch) | |
tree | 78a3a6de11fa6af6bc9ed69e172204815591ee8c /formula/source | |
parent | 91ad46fc2a50b1084bf8c28093ad8286674cbd28 (diff) |
Related: tdf#160056 rename/rework GetDoubleAsReference to SetDouble
Change-Id: I7e79e8d422fe7f426bb7c7360b11f836a5484574
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166053
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/token.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index b384f091db67..a7fc6a06868d 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -188,12 +188,10 @@ double FormulaToken::GetDouble() const return 0.0; } -double & FormulaToken::GetDoubleAsReference() +void FormulaToken::SetDouble(double) { // This Get is worth an assert. assert( !"virtual dummy called" ); - static double fVal = 0.0; - return fVal; } sal_Int16 FormulaToken::GetDoubleType() const @@ -1900,10 +1898,6 @@ void FormulaTokenArrayPlainIterator::AfterRemoveToken( sal_uInt16 nOffset, sal_u // real implementations of virtual functions - -double FormulaDoubleToken::GetDouble() const { return fDouble; } -double & FormulaDoubleToken::GetDoubleAsReference() { return fDouble; } - sal_Int16 FormulaDoubleToken::GetDoubleType() const { // This is a plain double value without type information, don't emit a |