From 0fb5ca6cc9cc55a4436a36c533461769b1fc8526 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Jul 2018 14:29:11 +0200 Subject: tdf#79877 perf loading docx file, writerfilter/ improvements this improves load time by 20%. We switch from shared_ptr to tools::SvRef to manage the objects I noticed some double inheritance like this: DomainMapper LoggedProperties Properties SvRefBase LoggedTable Table SvRefBase so to be safe I made all the ref-count-base-class inheritance virtual. Change-Id: Ia3de9733f5c6966e8171f43d083dcc087040b8cd Reviewed-on: https://gerrit.libreoffice.org/57022 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/tools/ref.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/tools') diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx index 68a1c3f56f09..62ac4952c6dc 100644 --- a/include/tools/ref.hxx +++ b/include/tools/ref.hxx @@ -130,11 +130,9 @@ protected: public: SvRefBase() : nRefCount(0), bNoDelete(1) {} - SvRefBase(const SvRefBase &) : nRefCount(0), bNoDelete(1) {} - SvRefBase & operator = ( const SvRefBase & ) - { return *this; } + SvRefBase & operator=(const SvRefBase &) { return *this; } void RestoreNoDelete() { bNoDelete = 1; } -- cgit