From 4a6175529c05b119471712889f5d50d7e8b5d91c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 5 May 2020 11:30:50 +0100 Subject: don't need to save and restore the search mask if it doesn't get changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic7da569f9133d31783c238d7ca4a4cc1ae0244f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93468 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svl/source/items/style.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'svl') diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index be80f702e06c..9650cead61eb 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -601,13 +601,11 @@ bool SfxStyleSheetBasePool::SetParent(SfxStyleFamily eFam, const OUString& rStyl return false; } - void SfxStyleSheetBasePool::SetSearchMask(SfxStyleFamily eFam, SfxStyleSearchBits n) { nSearchFamily = eFam; nMask = n; } - std::unique_ptr SfxStyleSheetBasePool::CreateIterator ( SfxStyleFamily eFam, @@ -805,8 +803,6 @@ void SfxStyleSheetBasePool::ChangeParent(const OUString& rOld, const OUString& rNew, bool bVirtual) { - const SfxStyleSearchBits nTmpMask = GetSearchMask(); - SetSearchMask(GetSearchFamily()); for( SfxStyleSheetBase* p = First(GetSearchFamily()); p; p = Next() ) { if( p->GetParent() == rOld ) @@ -817,7 +813,6 @@ void SfxStyleSheetBasePool::ChangeParent(const OUString& rOld, p->aParent = rNew; } } - SetSearchMask(GetSearchFamily(), nTmpMask); } SfxStyleSheet::SfxStyleSheet(const OUString &rName, -- cgit