summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorAhmet Hakan Çelik <ahmethcelik@gmail.com>2021-03-08 11:13:46 +0300
committerMichael Stahl <michael.stahl@allotropia.de>2021-03-16 11:45:04 +0100
commit0726ecd9e2f2d94e9f49eb40d2b4952475e02764 (patch)
tree5ead597cfb57cdb071c72d3b71779b35377233fe /idl
parentd2392723e1db63e31aa31fb4531a368b349fcd88 (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')
-rw-r--r--idl/inc/types.hxx6
-rw-r--r--idl/source/objects/types.cxx12
2 files changed, 9 insertions, 9 deletions
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx
index 97c353b36541..298e863c6663 100644
--- a/idl/inc/types.hxx
+++ b/idl/inc/types.hxx
@@ -44,7 +44,7 @@ public:
virtual bool Test( SvTokenStream & rInStm );
virtual bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) override;
- sal_uLong MakeSfx( OStringBuffer& rAtrrArray ) const;
+ size_t MakeSfx( OStringBuffer& rAtrrArray ) const;
virtual void Insert( SvSlotElementList& );
};
@@ -70,7 +70,7 @@ public:
SvRefMemberList<SvMetaAttribute *>&
GetAttrList() { return aAttrList; }
- sal_uLong GetAttrCount() const { return aAttrList.size(); }
+ size_t GetAttrCount() const { return aAttrList.size(); }
void SetType( MetaTypeType nT );
MetaTypeType GetMetaTypeType() const { return nType; }
@@ -81,7 +81,7 @@ public:
virtual bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) override;
- sal_uLong MakeSfx( OStringBuffer& rAtrrArray );
+ size_t MakeSfx( OStringBuffer& rAtrrArray );
virtual void WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm );
bool ReadMethodArgs( SvIdlDataBase & rBase,
SvTokenStream & rInStm );
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;