summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/sbxitem.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 /basctl/source/basicide/sbxitem.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 'basctl/source/basicide/sbxitem.cxx')
-rw-r--r--basctl/source/basicide/sbxitem.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basctl/source/basicide/sbxitem.cxx b/basctl/source/basicide/sbxitem.cxx
index 39c86b1d0893..b3ceccc4727d 100644
--- a/basctl/source/basicide/sbxitem.cxx
+++ b/basctl/source/basicide/sbxitem.cxx
@@ -29,13 +29,13 @@ SbxItem::SbxItem (
ScriptDocument aDocument,
OUString aLibName,
OUString aName,
- ItemType eType
+ SbxItemType eSbxType
) :
- SfxPoolItem(nWhichItem),
+ SfxPoolItem(nWhichItem, SfxItemType::SbxItemType),
m_aDocument(std::move(aDocument)),
m_aLibName(std::move(aLibName)),
m_aName(std::move(aName)),
- m_eType(eType)
+ m_eSbxType(eSbxType)
{ }
SbxItem::SbxItem (
@@ -44,14 +44,14 @@ SbxItem::SbxItem (
OUString aLibName,
OUString aName,
OUString aMethodName,
- ItemType eType
+ SbxItemType eSbxType
) :
- SfxPoolItem(nWhichItem),
+ SfxPoolItem(nWhichItem, SfxItemType::SbxItemType),
m_aDocument(std::move(aDocument)),
m_aLibName(std::move(aLibName)),
m_aName(std::move(aName)),
m_aMethodName(std::move(aMethodName)),
- m_eType(eType)
+ m_eSbxType(eSbxType)
{ }
SbxItem* SbxItem::Clone(SfxItemPool*) const
@@ -68,7 +68,7 @@ bool SbxItem::operator==(const SfxPoolItem& rCmp) const
m_aLibName == pSbxItem->m_aLibName &&
m_aName == pSbxItem->m_aName &&
m_aMethodName == pSbxItem->m_aMethodName &&
- m_eType == pSbxItem->m_eType;
+ m_eSbxType == pSbxItem->m_eSbxType;
}
} // namespace basctl