summaryrefslogtreecommitdiff
path: root/cui/source/options
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-18 01:07:42 +0200
commitc39e4f6b8a942680bc7250177c34fd034a0605e0 (patch)
treee7fb5be56a6f3a391ab420bede1d2ea714901777 /cui/source/options
parent8ef9573f087b86f93860c8d07d04b60a40512836 (diff)
Add SfxItemType to SfxPoolItem
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>
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/cfgchart.cxx2
-rw-r--r--cui/source/options/connpoolsettings.cxx2
-rw-r--r--cui/source/options/dbregistersettings.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx
index 8d1bd5e4130e..1ac75f6db361 100644
--- a/cui/source/options/cfgchart.cxx
+++ b/cui/source/options/cfgchart.cxx
@@ -215,7 +215,7 @@ void SvxChartOptions::SetDefaultColors( const SvxChartColorTable& rDefColors )
SvxChartColorTableItem::SvxChartColorTableItem( sal_uInt16 nWhich_, SvxChartColorTable aTable ) :
- SfxPoolItem( nWhich_ ),
+ SfxPoolItem( nWhich_, SfxItemType::SvxChartColorTableItemType ),
m_aColorTable(std::move( aTable ))
{
}
diff --git a/cui/source/options/connpoolsettings.cxx b/cui/source/options/connpoolsettings.cxx
index e92b26da555f..144be599bb10 100644
--- a/cui/source/options/connpoolsettings.cxx
+++ b/cui/source/options/connpoolsettings.cxx
@@ -46,7 +46,7 @@ namespace offapp
DriverPoolingSettingsItem::DriverPoolingSettingsItem( sal_uInt16 _nId, DriverPoolingSettings _aSettings )
- :SfxPoolItem(_nId)
+ :SfxPoolItem(_nId, SfxItemType::DriverPoolingSettingsItemType)
,m_aSettings(std::move(_aSettings))
{
}
diff --git a/cui/source/options/dbregistersettings.cxx b/cui/source/options/dbregistersettings.cxx
index c544e1111fe3..6441de2b6b00 100644
--- a/cui/source/options/dbregistersettings.cxx
+++ b/cui/source/options/dbregistersettings.cxx
@@ -26,7 +26,7 @@ namespace svx
{
DatabaseMapItem::DatabaseMapItem( sal_uInt16 _nId, DatabaseRegistrations&& _rRegistrations )
- :SfxPoolItem( _nId )
+ :SfxPoolItem( _nId, SfxItemType::DatabaseMapItemType )
,m_aRegistrations( std::move(_rRegistrations) )
{
}