summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/UnoNameItemTable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodraw/UnoNameItemTable.cxx')
-rw-r--r--svx/source/unodraw/UnoNameItemTable.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/svx/source/unodraw/UnoNameItemTable.cxx b/svx/source/unodraw/UnoNameItemTable.cxx
index 7c11806bec..3d3b594cbe 100644
--- a/svx/source/unodraw/UnoNameItemTable.cxx
+++ b/svx/source/unodraw/UnoNameItemTable.cxx
@@ -201,11 +201,11 @@ void SAL_CALL SvxUnoNameItemTable::replaceByName( const OUString& aApiName, cons
// if it is not in our own sets, modify the pool!
sal_Bool bFound = sal_False;
- USHORT nSurrogate;
- USHORT nCount = mpModelPool ? mpModelPool->GetItemCount( mnWhich ) : 0;
+ sal_uInt32 nSurrogate;
+ sal_uInt32 nCount = mpModelPool ? mpModelPool->GetItemCount2( mnWhich ) : 0;
for( nSurrogate = 0; nSurrogate < nCount; nSurrogate++ )
{
- pItem = (NameOrIndex*)mpModelPool->GetItem( mnWhich, nSurrogate);
+ pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate);
if( pItem && pItem->GetName() == aSearchName )
{
pItem->PutValue( aElement, mnMemberId );
@@ -238,12 +238,12 @@ uno::Any SAL_CALL SvxUnoNameItemTable::getByName( const OUString& aApiName )
{
const String aSearchName( aName );
NameOrIndex *pItem;
- sal_Int32 nSurrogate;
+ sal_uInt32 nSurrogate;
- sal_Int32 nSurrogateCount = mpModelPool ? (sal_Int32)mpModelPool->GetItemCount( mnWhich ) : 0;
+ sal_uInt32 nSurrogateCount = mpModelPool ? mpModelPool->GetItemCount2( mnWhich ) : 0;
for( nSurrogate = 0; nSurrogate < nSurrogateCount; nSurrogate++ )
{
- pItem = (NameOrIndex*)mpModelPool->GetItem( mnWhich, (USHORT)nSurrogate );
+ pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate );
if( isValid( pItem ) && (pItem->GetName() == aSearchName) )
{
@@ -266,11 +266,11 @@ uno::Sequence< OUString > SAL_CALL SvxUnoNameItemTable::getElementNames( )
NameOrIndex *pItem;
OUString aApiName;
- const sal_Int32 nSurrogateCount = mpModelPool ? (sal_Int32)mpModelPool->GetItemCount( mnWhich ) : 0;
- sal_Int32 nSurrogate;
+ const sal_uInt32 nSurrogateCount = mpModelPool ? mpModelPool->GetItemCount2( mnWhich ) : 0;
+ sal_uInt32 nSurrogate;
for( nSurrogate = 0; nSurrogate < nSurrogateCount; nSurrogate++ )
{
- pItem = (NameOrIndex*)mpModelPool->GetItem( mnWhich, (USHORT)nSurrogate );
+ pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate );
if( !isValid( pItem ) )
continue;
@@ -305,14 +305,14 @@ sal_Bool SAL_CALL SvxUnoNameItemTable::hasByName( const OUString& aApiName )
return sal_False;
const String aSearchName( aName );
- USHORT nSurrogate;
+ sal_uInt32 nSurrogate;
const NameOrIndex *pItem;
- USHORT nCount = mpModelPool ? mpModelPool->GetItemCount( mnWhich ) : 0;
+ sal_uInt32 nCount = mpModelPool ? mpModelPool->GetItemCount2( mnWhich ) : 0;
for( nSurrogate = 0; nSurrogate < nCount; nSurrogate++ )
{
- pItem = (NameOrIndex*)mpModelPool->GetItem( mnWhich, nSurrogate );
+ pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate );
if( isValid( pItem ) && (pItem->GetName() == aSearchName) )
return sal_True;
}
@@ -327,11 +327,11 @@ sal_Bool SAL_CALL SvxUnoNameItemTable::hasElements( )
const NameOrIndex *pItem;
- sal_Int32 nSurrogate;
- const sal_Int32 nSurrogateCount = mpModelPool ? (sal_Int32)mpModelPool->GetItemCount( mnWhich ) : 0;
+ sal_uInt32 nSurrogate;
+ const sal_uInt32 nSurrogateCount = mpModelPool ? mpModelPool->GetItemCount2( mnWhich ) : 0;
for( nSurrogate = 0; nSurrogate < nSurrogateCount; nSurrogate++ )
{
- pItem = (NameOrIndex*)mpModelPool->GetItem( mnWhich, (USHORT)nSurrogate );
+ pItem = (NameOrIndex*)mpModelPool->GetItem2( mnWhich, nSurrogate );
if( isValid( pItem ) )
return sal_True;