diff options
author | Ahmet Hakan Çelik <ahmethcelik@gmail.com> | 2021-03-08 11:13:46 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-16 11:45:04 +0100 |
commit | 0726ecd9e2f2d94e9f49eb40d2b4952475e02764 (patch) | |
tree | 5ead597cfb57cdb071c72d3b71779b35377233fe /idl/source | |
parent | d2392723e1db63e31aa31fb4531a368b349fcd88 (diff) |
tdf#114441: Convert use of sal_uLong to better integer types
Change-Id: I173d57105429e2bdf2288678fa7911b8541a402b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112154
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/types.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 9cb1684caffc..a0238d9b4c78 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -96,7 +96,7 @@ bool SvMetaAttribute::ReadSvIdl( SvIdlDataBase & rBase, return bOk; } -sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray ) const +size_t SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray ) const { SvMetaType * pType = GetType(); DBG_ASSERT( pType, "no type for attribute" ); @@ -199,15 +199,15 @@ void SvMetaType::ReadContextSvIdl( SvIdlDataBase & rBase, } } -sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray ) +size_t SvMetaType::MakeSfx( OStringBuffer& rAttrArray ) { - sal_uLong nC = 0; + size_t nC = 0; if( GetBaseType()->GetMetaTypeType() == MetaTypeType::Struct ) { - sal_uLong nAttrCount = GetAttrCount(); + size_t nAttrCount = GetAttrCount(); // write the single attributes - for( sal_uLong n = 0; n < nAttrCount; n++ ) + for( size_t n = 0; n < nAttrCount; n++ ) { nC += aAttrList[n]->MakeSfx( rAttrArray ); if( n +1 < nAttrCount ) @@ -224,7 +224,7 @@ void SvMetaType::WriteSfxItem( OString aVarName = " a" + rItemName + "_Impl"; OStringBuffer aAttrArray(1024); - sal_uLong nAttrCount = MakeSfx( aAttrArray ); + size_t nAttrCount = MakeSfx( aAttrArray ); OString aAttrCount( OString::number(nAttrCount)); OString aTypeName = "SfxType" + aAttrCount; |