summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-05 15:18:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-05 20:15:02 +0200
commitebcd29ab3b16ab93a523122a672c5f08fcbce4a0 (patch)
tree61be5bcdb9de6f386d6ca0ada7d30ebabafa36dd /svx
parentf572f4f5e8ea3058b85c8aed7ee2647e4362de74 (diff)
remove unused nSearchFamily and nMask members
and so SetSearchMask which doesn't have any effect anymore Change-Id: I0b7f402ce0317971d5196fc448fe2945a6a292f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93393 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/srchdlg.cxx2
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx5
2 files changed, 0 insertions, 7 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 6e974372f80a..371bac5c75cf 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -906,7 +906,6 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern )
m_xSearchTmplLB->clear();
m_xReplaceTmplLB->clear();
SfxStyleSheetBasePool* pStylePool = pShell->GetStyleSheetPool();
- pStylePool->SetSearchMask( pSearchItem->GetFamily() );
SfxStyleSheetBase* pBase = pStylePool->First(pSearchItem->GetFamily());
while ( pBase )
@@ -1596,7 +1595,6 @@ void SvxSearchDialog::TemplatesChanged_Impl( SfxStyleSheetBasePool& rPool )
OUString aOldRepl( m_xReplaceTmplLB->get_active_text() );
m_xSearchTmplLB->clear();
m_xReplaceTmplLB->clear();
- rPool.SetSearchMask( pSearchItem->GetFamily() );
m_xSearchTmplLB->freeze();
m_xReplaceTmplLB->freeze();
SfxStyleSheetBase* pBase = rPool.First(pSearchItem->GetFamily());
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 883ddbf83143..ce6a935c4714 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -970,8 +970,6 @@ void SvxStyleBox_Base::Select(bool bNonTravelSelect)
if ( pPool )
{
- pPool->SetSearchMask( eStyleFamily );
-
pStyle = pPool->First(eStyleFamily);
while ( pStyle && pStyle->GetName() != aSearchEntry )
pStyle = pPool->Next();
@@ -1141,8 +1139,6 @@ void SvxStyleBox_Base::SetupEntry(vcl::RenderContext& rRenderContext, sal_Int32
if ( pPool )
{
- pPool->SetSearchMask( eStyleFamily );
-
pStyle = pPool->First(eStyleFamily);
while (pStyle && pStyle->GetName() != rStyleName)
pStyle = pPool->Next();
@@ -2756,7 +2752,6 @@ void SvxStyleToolBoxControl::FillStyleBox()
SfxStyleSheetBase* pStyle = nullptr;
bool bDoFill = false;
- pStyleSheetPool->SetSearchMask( eFamily, SfxStyleSearchBits::Used );
auto xIter = pStyleSheetPool->CreateIterator(eFamily, SfxStyleSearchBits::Used);
sal_uInt16 nCount = xIter->Count();