summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/optsitem.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 /sd/source/ui/app/optsitem.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 'sd/source/ui/app/optsitem.cxx')
-rw-r--r--sd/source/ui/app/optsitem.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index 9fd8d453bbcd..0fc747f720ca 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -278,13 +278,13 @@ bool SdOptionsLayout::WriteData( Any* pValues ) const
\************************************************************************/
SdOptionsLayoutItem::SdOptionsLayoutItem()
-: SfxPoolItem ( ATTR_OPTIONS_LAYOUT )
+: SfxPoolItem ( ATTR_OPTIONS_LAYOUT, SfxItemType::SdOptionsLayoutItemType)
, maOptionsLayout ( false, false )
{
}
SdOptionsLayoutItem::SdOptionsLayoutItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
-: SfxPoolItem ( ATTR_OPTIONS_LAYOUT )
+: SfxPoolItem ( ATTR_OPTIONS_LAYOUT, SfxItemType::SdOptionsLayoutItemType )
, maOptionsLayout ( false, false )
{
if( pOpts )
@@ -611,13 +611,13 @@ bool SdOptionsMisc::WriteData( Any* pValues ) const
\************************************************************************/
SdOptionsMiscItem::SdOptionsMiscItem()
-: SfxPoolItem ( ATTR_OPTIONS_MISC )
+: SfxPoolItem ( ATTR_OPTIONS_MISC, SfxItemType::SdOptionsMiscItemType )
, maOptionsMisc ( false, false )
{
}
SdOptionsMiscItem::SdOptionsMiscItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
-: SfxPoolItem ( ATTR_OPTIONS_MISC )
+: SfxPoolItem ( ATTR_OPTIONS_MISC, SfxItemType::SdOptionsMiscItemType )
, maOptionsMisc ( false, false )
{
if( pOpts )
@@ -822,13 +822,13 @@ bool SdOptionsSnap::WriteData( Any* pValues ) const
\************************************************************************/
SdOptionsSnapItem::SdOptionsSnapItem()
-: SfxPoolItem ( ATTR_OPTIONS_SNAP )
+: SfxPoolItem ( ATTR_OPTIONS_SNAP, SfxItemType::SdOptionsSnapItemType )
, maOptionsSnap ( false, false )
{
}
SdOptionsSnapItem::SdOptionsSnapItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
-: SfxPoolItem ( ATTR_OPTIONS_SNAP )
+: SfxPoolItem ( ATTR_OPTIONS_SNAP, SfxItemType::SdOptionsSnapItemType )
, maOptionsSnap ( false, false )
{
if( pView )
@@ -1264,13 +1264,13 @@ bool SdOptionsPrint::WriteData( Any* pValues ) const
\************************************************************************/
SdOptionsPrintItem::SdOptionsPrintItem()
-: SfxPoolItem ( ATTR_OPTIONS_PRINT )
+: SfxPoolItem ( ATTR_OPTIONS_PRINT, SfxItemType::SdOptionsPrintItemType )
, maOptionsPrint ( false, false )
{
}
SdOptionsPrintItem::SdOptionsPrintItem( SdOptions const * pOpts )
-: SfxPoolItem ( ATTR_OPTIONS_PRINT )
+: SfxPoolItem ( ATTR_OPTIONS_PRINT, SfxItemType::SdOptionsPrintItemType )
, maOptionsPrint ( false, false )
{
if( !pOpts )