summaryrefslogtreecommitdiff
path: root/sw/source/filter/basflt/fltshell.cxx
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2024-05-22 12:26:46 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-06-19 23:32:20 +0200
commit04a5157e9526c1570034fc88973a061138b133ea (patch)
tree8fa13473284d737147828fb0898c9abca7c9a86d /sw/source/filter/basflt/fltshell.cxx
parent60c00a1d12fe531dbec8c285eaf8bfa02684be3c (diff)
Add SfxItemType to SfxPoolItem cib_contract49c-24.2.4.2.M1
The SfxPoolItem has a new member SfxItemType m_eItemType to compare types based on enums instead of typeinfo() which consumes a lot of time e.g. while AutoFormat is running Change-Id: I033ce67bc9a28ee4790f162380314de85fb4154e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166452 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169185 Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sw/source/filter/basflt/fltshell.cxx')
-rw-r--r--sw/source/filter/basflt/fltshell.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sw/source/filter/basflt/fltshell.cxx b/sw/source/filter/basflt/fltshell.cxx
index c8b7ac205890..dbcea439a582 100644
--- a/sw/source/filter/basflt/fltshell.cxx
+++ b/sw/source/filter/basflt/fltshell.cxx
@@ -850,14 +850,16 @@ void SwFltControlStack::Delete(const SwPaM &rPam)
// methods of SwFltAnchor follow
SwFltAnchor::SwFltAnchor(SwFrameFormat* pFormat) :
- SfxPoolItem(RES_FLTR_ANCHOR), m_pFrameFormat(pFormat)
+ SfxPoolItem(RES_FLTR_ANCHOR, SfxItemType::SwFltAnchorType)
+ , m_pFrameFormat(pFormat)
{
m_pListener.reset(new SwFltAnchorListener(this));
m_pListener->StartListening(m_pFrameFormat->GetNotifier());
}
SwFltAnchor::SwFltAnchor(const SwFltAnchor& rCpy) :
- SfxPoolItem(RES_FLTR_ANCHOR), m_pFrameFormat(rCpy.m_pFrameFormat)
+ SfxPoolItem(RES_FLTR_ANCHOR, SfxItemType::SwFltAnchorType)
+ , m_pFrameFormat(rCpy.m_pFrameFormat)
{
m_pListener.reset(new SwFltAnchorListener(this));
m_pListener->StartListening(m_pFrameFormat->GetNotifier());
@@ -926,7 +928,7 @@ SwFltRedline* SwFltRedline::Clone( SfxItemPool* ) const
// methods of SwFltBookmark follow
SwFltBookmark::SwFltBookmark( const OUString& rNa, OUString aVa,
tools::Long nHand, const bool bIsTOCBookmark )
- : SfxPoolItem( RES_FLTR_BOOKMARK )
+ : SfxPoolItem( RES_FLTR_BOOKMARK, SfxItemType::SwFltBookmarkType )
, mnHandle( nHand )
, maName( rNa )
, maVal(std::move( aVa ))
@@ -958,7 +960,7 @@ SwFltBookmark* SwFltBookmark::Clone(SfxItemPool*) const
}
SwFltRDFMark::SwFltRDFMark()
- : SfxPoolItem(RES_FLTR_RDFMARK),
+ : SfxPoolItem(RES_FLTR_RDFMARK, SfxItemType::SwFltRDFMarkType),
m_nHandle(0)
{
}
@@ -1000,7 +1002,8 @@ const std::vector< std::pair<OUString, OUString> >& SwFltRDFMark::GetAttributes(
// methods of SwFltTOX follow
SwFltTOX::SwFltTOX(std::shared_ptr<SwTOXBase> xBase)
- : SfxPoolItem(RES_FLTR_TOX), m_xTOXBase(std::move(xBase)),
+ : SfxPoolItem(RES_FLTR_TOX, SfxItemType::SwFltTOXType)
+ , m_xTOXBase(std::move(xBase)),
m_bHadBreakItem( false ), m_bHadPageDescItem( false )
{
}