From bb991cd08a16d701f56adfea86502ebaa4855fae Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Mon, 18 Oct 2010 22:00:21 +0200 Subject: svarray: #i112395# #i84159# increase max number of pools to 2^32 --- sd/source/core/drawdoc2.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index 74a1bde5f5f8..f88666cf513d 100755 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -307,10 +307,10 @@ void SdDrawDocument::UpdatePageRelativeURLs(const String& rOldName, const String return; SfxItemPool& pPool(GetPool()); - USHORT nCount = pPool.GetItemCount(EE_FEATURE_FIELD); - for (USHORT nOff = 0; nOff < nCount; nOff++) + sal_uInt32 nCount = pPool.GetItemCount2(EE_FEATURE_FIELD); + for (sal_uInt32 nOff = 0; nOff < nCount; nOff++) { - const SfxPoolItem *pItem = pPool.GetItem(EE_FEATURE_FIELD, nOff); + const SfxPoolItem *pItem = pPool.GetItem2(EE_FEATURE_FIELD, nOff); const SvxFieldItem* pFldItem = dynamic_cast< const SvxFieldItem * > (pItem); if(pFldItem) @@ -352,10 +352,10 @@ void SdDrawDocument::UpdatePageRelativeURLs(SdPage* pPage, USHORT nPos, sal_Int3 bool bNotes = (pPage->GetPageKind() == PK_NOTES); SfxItemPool& pPool(GetPool()); - USHORT nCount = pPool.GetItemCount(EE_FEATURE_FIELD); - for (USHORT nOff = 0; nOff < nCount; nOff++) + sal_uInt32 nCount = pPool.GetItemCount2(EE_FEATURE_FIELD); + for (sal_uInt32 nOff = 0; nOff < nCount; nOff++) { - const SfxPoolItem *pItem = pPool.GetItem(EE_FEATURE_FIELD, nOff); + const SfxPoolItem *pItem = pPool.GetItem2(EE_FEATURE_FIELD, nOff); const SvxFieldItem* pFldItem; if ((pFldItem = dynamic_cast< const SvxFieldItem * > (pItem)) != 0) -- cgit v1.2.3