[Libreoffice-commits] core.git: svl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 5 16:18:42 UTC 2020
svl/source/items/style.cxx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
New commits:
commit 8a9bbd316fd0b798ce60482f904927010ea9fcc5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue May 5 12:47:46 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue May 5 18:18:07 2020 +0200
don't need to save and restore the search mask if it doesn't get changed
Change-Id: I19ee6a916017cb49092a2b74bc2bfd9b99b8c72d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93489
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index ef1b7078b3f6..1a747985cef7 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -172,11 +172,6 @@ bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
if ( pOther && pOther != this )
return false;
- SfxStyleFamily eTmpFam = m_pPool->GetSearchFamily();
- SfxStyleSearchBits nTmpMask = m_pPool->GetSearchMask();
-
- m_pPool->SetSearchMask(nFamily);
-
if ( !aName.isEmpty() )
m_pPool->ChangeParent(aName, rName, nFamily, false);
@@ -185,7 +180,7 @@ bool SfxStyleSheetBase::SetName(const OUString& rName, bool bReIndexNow)
aName = rName;
if (bReIndexNow)
m_pPool->Reindex();
- m_pPool->SetSearchMask(eTmpFam, nTmpMask);
+
m_pPool->Broadcast( SfxStyleSheetModifiedHint( aOldName, *this ) );
}
return true;
More information about the Libreoffice-commits
mailing list