diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-14 21:09:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-15 14:08:06 +0200 |
commit | 9d29649e07a3b2c5c2b3dda1dc15c0ca1ed51ae3 (patch) | |
tree | 74dca736747d5e86a777334b434f27107ba5f6d7 /include/formula | |
parent | b25b8a41ab93890a71859feeba458523c0ec7015 (diff) |
Related: tdf#160056 FormulaResult may ref an initial interpreter FormulaToken
If a token from the original tokens, supplied to a parallel group calculation
while RefCounting was disabled for those tokens, ends up as a FormulaResult
token, then fix up the ref count when parallel calculation ends
Change-Id: I2587c25d216ab170725017b67b97d203a578160b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166080
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/token.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/formula/token.hxx b/include/formula/token.hxx index 68461a48db1d..89043877a4fd 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -186,6 +186,7 @@ public: } void SetRefCntPolicy(RefCntPolicy ePolicy) { eRefCntPolicy = ePolicy; } + RefCntPolicy GetRefCntPolicy() const { return eRefCntPolicy; } oslInterlockedCount GetRef() const { return mnRefCnt; } OpCode GetOpCode() const { return eOp; } |