diff options
author | Oliver Specht <oliver.specht@cib.de> | 2024-05-22 12:26:46 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-06-18 01:07:42 +0200 |
commit | c39e4f6b8a942680bc7250177c34fd034a0605e0 (patch) | |
tree | e7fb5be56a6f3a391ab420bede1d2ea714901777 /svx/source/items/grfitem.cxx | |
parent | 8ef9573f087b86f93860c8d07d04b60a40512836 (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 'svx/source/items/grfitem.cxx')
-rw-r--r-- | svx/source/items/grfitem.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx index 30c0977a034d..fcc06e2b39be 100644 --- a/svx/source/items/grfitem.cxx +++ b/svx/source/items/grfitem.cxx @@ -25,14 +25,15 @@ using namespace ::com::sun::star; -SvxGrfCrop::SvxGrfCrop( TypedWhichId<SvxGrfCrop> nItemId ) - : SfxPoolItem( nItemId ), +SvxGrfCrop::SvxGrfCrop( TypedWhichId<SvxGrfCrop> nItemId, SfxItemType eType ) + : SfxPoolItem( nItemId, eType ), nLeft( 0 ), nRight( 0 ), nTop( 0 ), nBottom( 0 ) {} SvxGrfCrop::SvxGrfCrop( sal_Int32 nL, sal_Int32 nR, - sal_Int32 nT, sal_Int32 nB, TypedWhichId<SvxGrfCrop> nItemId ) - : SfxPoolItem( nItemId ), + sal_Int32 nT, sal_Int32 nB, TypedWhichId<SvxGrfCrop> nItemId, + SfxItemType eItemType ) + : SfxPoolItem( nItemId, eItemType ), nLeft( nL ), nRight( nR ), nTop( nT ), nBottom( nB ) {} |