summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-04 11:23:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-04 14:58:14 +0200
commit7959953e990b9fc10dbffd5a92553037d2b419c2 (patch)
tree77aaac7d621314778f3510be130c959cb67b5e88 /sc/inc/document.hxx
parent8c8543ed7f554eb9b26456dbeba6614e26699c89 (diff)
fix leak in CppunitTest_sc_ucalc
Change-Id: Iee5f4bfcd8ad90d37e787d225928a5ae7b269f2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100048 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index f2ceca43fcbf..69e0b06a6cab 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -296,14 +296,11 @@ const sal_uInt8 SC_DDE_IGNOREMODE = 255; /// For usage in FindDdeLink()
// During threaded calculation fields being mutated are kept in this struct
struct ScDocumentThreadSpecific
{
- ScRecursionHelper* pRecursionHelper; // information for recursive and iterative cell formulas
+ std::unique_ptr<ScRecursionHelper> xRecursionHelper; // information for recursive and iterative cell formulas
ScInterpreterContext* pContext; // references the context passed around for easier access
- ScDocumentThreadSpecific()
- : pRecursionHelper(nullptr)
- , pContext(nullptr)
- {
- }
+ ScDocumentThreadSpecific();
+ ~ScDocumentThreadSpecific();
// To be called in the thread at start
static void SetupFromNonThreadedData(const ScDocumentThreadSpecific& rNonThreadedData);
@@ -2225,8 +2222,6 @@ private:
DECL_LINK(TrackTimeHdl, Timer *, void);
- static ScRecursionHelper* CreateRecursionHelperInstance();
-
/** Adjust a range to available sheets.
Used to start and stop listening on a sane range. Both o_rRange and