From df6a8b15a67baa6e2717a7de7755ac93fdb46723 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Aug 2021 13:06:25 +0200 Subject: tdf#95549 speed up xls open Remove the m_wThis field, and instead just check the ref count to know if we are being called from our own destructor. Also re-order ScCellRangesBase::Notify so we do the cheap checks first. This shaves 2% off the load time Change-Id: Ie95a4ff46bacba583ec4b3a934f98a9aac3551b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120385 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/cellsuno.hxx | 1 - 1 file changed, 1 deletion(-) (limited to 'sc/inc') diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index b29da7c92c0b..7f1b1a0106ad 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -176,7 +176,6 @@ class SC_DLLPUBLIC ScCellRangesBase : friend class ooo::vba::excel::ScVbaCellRangeAccess; private: - css::uno::WeakReference m_wThis; const SfxItemPropertySet* pPropSet; ScDocShell* pDocShell; std::unique_ptr pValueListener; -- cgit