diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 11:30:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 14:17:06 +0200 |
commit | 4a6175529c05b119471712889f5d50d7e8b5d91c (patch) | |
tree | 01f0732d1cc20cea803543f760ef8eb01747099d /svl | |
parent | ec22120d81ff52e013881a3b2c4c54b74576953c (diff) |
don't need to save and restore the search mask if it doesn't get changed
Change-Id: Ic7da569f9133d31783c238d7ca4a4cc1ae0244f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93468
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/style.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
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<SfxStyleSheetIterator> 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, |