From fe70f736de7e5e92fcedc4b123e419ec805fdece Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 3 May 2020 20:13:21 +0100 Subject: no need to save and restore the SaveMask if we don't change it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4cc4c68fee1e38fd5fc7b20685e722d51fc791a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93356 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/core/unocore/unostyle.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 2c3c2a60d3cb..90a0f5a97d40 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -2074,10 +2074,7 @@ void SwXStyle::SetPropertyValues_Impl(const uno::Sequence& rPropertyNa SwStyleBase_Impl aBaseImpl(*m_pDoc, m_sStyleName, &GetDoc()->GetDfltTextFormatColl()->GetAttrSet()); // add pDfltTextFormatColl as parent if(m_pBasePool) { - const SfxStyleSearchBits nSaveMask = m_pBasePool->GetSearchMask(); - m_pBasePool->SetSearchMask(m_rEntry.m_eFamily); SfxStyleSheetBase* pBase = m_pBasePool->Find(m_sStyleName, m_rEntry.m_eFamily); - m_pBasePool->SetSearchMask(m_rEntry.m_eFamily, nSaveMask); SAL_WARN_IF(!pBase, "sw.uno", "where is the style?"); if(!pBase) throw uno::RuntimeException(); @@ -2127,10 +2124,7 @@ SfxStyleSheetBase* SwXStyle::GetStyleSheetBase() { if(!m_pBasePool) return nullptr; - const SfxStyleSearchBits nSaveMask = m_pBasePool->GetSearchMask(); - m_pBasePool->SetSearchMask(m_rEntry.m_eFamily); SfxStyleSheetBase* pBase = m_pBasePool->Find(m_sStyleName, m_rEntry.m_eFamily); - m_pBasePool->SetSearchMask(m_rEntry.m_eFamily, nSaveMask ); return pBase; } void SwXStyle::PrepareStyleBase(SwStyleBase_Impl& rBase) -- cgit