From ece77815300de02ba8fcd9ef6d135c72f3fd9e34 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Aug 2020 15:46:37 +0200 Subject: fix leak in ScCacheTest and put the init/destruct in constructor/destructor instead of setup(), we want this to run once, not for every test method. Change-Id: I7d5fcdd2974677f1509048c16fb40d03dff289c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100004 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/global.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/inc/global.hxx') diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index b374c8c3f881..3f7ce5d622ee 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -591,7 +591,7 @@ public: SC_DLLPUBLIC static void Init(); // during start up static void InitAddIns(); - static void Clear(); // at the end of the program + SC_DLLPUBLIC static void Clear(); // at the end of the program static void InitTextHeight(const SfxItemPool* pPool); static SvxBrushItem* GetEmptyBrushItem() { return pEmptyBrushItem; } -- cgit