summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-06-19 23:10:57 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-06-20 12:46:27 +0200
commitf4ff0ed55707078868415541c4a1aebd3db1e142 (patch)
tree1739eb7d535dd1f3f30fb7313797556b0cbcb1c5 /include/basic
parent2c68c419c1fce6de1a81e1f13a84b7069125a204 (diff)
tdf#149622: also clear return value before calling method from SbxObject::Call
Moves the custom cleanup logic to overridden SbxMethod::Clear, to simplify the cleanup code and make sure it restores empty Variant correctly. Change-Id: I01fa0529acd9ac787ffcda60fd6836ade4afdcb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136108 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/sbxmeth.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/basic/sbxmeth.hxx b/include/basic/sbxmeth.hxx
index b32a40f1454f..23ec6a00e5c9 100644
--- a/include/basic/sbxmeth.hxx
+++ b/include/basic/sbxmeth.hxx
@@ -36,6 +36,7 @@ public:
virtual SbxClassType GetClass() const override;
bool IsRuntimeFunction() const { return mbIsRuntimeFunction; }
SbxDataType GetRuntimeFunctionReturnType() const{ return mbRuntimeFunctionReturnType; }
+ virtual void Clear() override;
};
#endif