summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-13 16:32:28 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-13 21:28:16 +0200
commit1d63489ae7f99545bcd8a6f41496e78ccad3273f (patch)
tree78a3a6de11fa6af6bc9ed69e172204815591ee8c /include/formula
parent91ad46fc2a50b1084bf8c28093ad8286674cbd28 (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 'include/formula')
-rw-r--r--include/formula/token.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/formula/token.hxx b/include/formula/token.hxx
index 6fd5670e36b0..68461a48db1d 100644
--- a/include/formula/token.hxx
+++ b/include/formula/token.hxx
@@ -212,7 +212,7 @@ public:
virtual ParamClass GetInForceArray() const;
virtual void SetInForceArray( ParamClass c );
virtual double GetDouble() const;
- virtual double& GetDoubleAsReference();
+ virtual void SetDouble(double fValue);
virtual sal_Int16 GetDoubleType() const;
virtual void SetDoubleType( sal_Int16 nType );
virtual const svl::SharedString & GetString() const;
@@ -340,8 +340,8 @@ public:
FormulaToken( r ), fDouble( r.fDouble ) {}
virtual FormulaToken* Clone() const override { return new FormulaDoubleToken(*this); }
- virtual double GetDouble() const override final;
- virtual double& GetDoubleAsReference() override final;
+ virtual double GetDouble() const override final { return fDouble; }
+ virtual void SetDouble(double fValue) override final { fDouble = fValue; }
virtual sal_Int16 GetDoubleType() const override; ///< always returns 0 for "not typed"
virtual bool operator==( const FormulaToken& rToken ) const override;
};