diff options
Diffstat (limited to 'tools/inc/tools/ownlist.hxx')
-rw-r--r-- | tools/inc/tools/ownlist.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/inc/tools/ownlist.hxx b/tools/inc/tools/ownlist.hxx index f0d708a88ba8..715734f162f6 100644 --- a/tools/inc/tools/ownlist.hxx +++ b/tools/inc/tools/ownlist.hxx @@ -36,8 +36,8 @@ #define PRV_SV_DECL_OWNER_LIST(ClassName,Type) \ List aTypes; \ public: \ - ClassName( USHORT nInitSize = 16, \ - USHORT nReSize = 16 ) \ + ClassName( sal_uInt16 nInitSize = 16, \ + sal_uInt16 nReSize = 16 ) \ : aTypes( nInitSize, nReSize ) {} \ ClassName( const ClassName & rObj ) \ { *this = rObj; } \ @@ -49,18 +49,18 @@ public: \ { delete (Type *)aTypes.Remove(); } \ void Remove( Type * pObj ) \ { delete (Type *)aTypes.Remove( pObj ); } \ - void Remove( ULONG nPos ) \ + void Remove( sal_uIntPtr nPos ) \ { delete (Type *)aTypes.Remove( nPos ); } \ - Type & Insert( const Type &, ULONG nPos ); \ + Type & Insert( const Type &, sal_uIntPtr nPos ); \ Type & Insert( const Type & rType ) \ { return Insert( rType, aTypes.GetCurPos() ); } \ Type & Append( const Type & rType ) \ { return Insert( rType, LIST_APPEND ); } \ - Type & GetObject( ULONG nPos ) const \ + Type & GetObject( sal_uIntPtr nPos ) const \ { return *(Type *)aTypes.GetObject( nPos ); } \ - Type & operator []( ULONG nPos ) const \ + Type & operator []( sal_uIntPtr nPos ) const \ { return *(Type *)aTypes.GetObject( nPos ); } \ - ULONG Count() const { return aTypes.Count(); } + sal_uIntPtr Count() const { return aTypes.Count(); } #define PRV_SV_IMPL_OWNER_LIST(ClassName,Type) \ ClassName & ClassName::operator = ( const ClassName & rObj ) \ @@ -68,7 +68,7 @@ ClassName & ClassName::operator = ( const ClassName & rObj ) \ if( this != &rObj ) \ { \ Clear(); \ - for( ULONG i = 0; i < rObj.Count(); i++ ) \ + for( sal_uIntPtr i = 0; i < rObj.Count(); i++ ) \ Append( rObj.GetObject( i ) ); \ } \ return *this; \ @@ -83,7 +83,7 @@ void ClassName::Clear() \ } \ aTypes.Clear(); \ } \ -Type & ClassName::Insert( const Type & rType, ULONG nPos ) \ +Type & ClassName::Insert( const Type & rType, sal_uIntPtr nPos ) \ { \ Type * pType = new Type( rType ); \ aTypes.Insert( pType, nPos ); \ |