diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx index 6bc904133f61..86b2af448133 100644 --- a/idl/inc/hash.hxx +++ b/idl/inc/hash.hxx @@ -29,7 +29,7 @@ class SvStringHashEntry { OString aName; - sal_uLong nValue; + sal_uInt32 nValue; public: SvStringHashEntry( OString aName_ ) : aName(std::move(aName_)) @@ -39,8 +39,8 @@ public: const OString& GetName() const { return aName; } - void SetValue( sal_uLong n ) { nValue = n; } - sal_uLong GetValue() const { return nValue; } + void SetValue( sal_uInt32 n ) { nValue = n; } + sal_uInt32 GetValue() const { return nValue; } }; class SvStringHashTable diff --git a/idl/inc/object.hxx b/idl/inc/object.hxx index 8d16ca563c74..b5c30c9e0247 100644 --- a/idl/inc/object.hxx +++ b/idl/inc/object.hxx @@ -71,7 +71,7 @@ private: SvIdlDataBase & rBase, SvStream & rOutStm ); - void InsertSlots( SvSlotElementList& rList, std::vector& rSuperList, + void InsertSlots( SvSlotElementList& rList, std::vector& rSuperList, SvMetaClassList & rClassList, const OString& rPrefix, SvIdlDataBase& rBase ); diff --git a/idl/inc/slot.hxx b/idl/inc/slot.hxx index f8ba61d98fa3..fd8e9c0ad5ce 100644 --- a/idl/inc/slot.hxx +++ b/idl/inc/slot.hxx @@ -48,7 +48,7 @@ public: SvBOOL aContainer; OString aDisableFlags; SvMetaSlot* pNextSlot; - sal_uLong nListPos; + sal_uInt32 nListPos; SvBOOL aReadOnlyDoc; void WriteSlot( std::string_view rShellName, @@ -104,9 +104,9 @@ public: bool GetContainer() const; bool GetReadOnlyDoc() const; - sal_uLong GetListPos() const + sal_uInt32 GetListPos() const { return nListPos; } - void SetListPos(sal_uLong n) + void SetListPos(sal_uInt32 n) { nListPos = n; } void ResetSlotPointer() { pNextSlot = nullptr; } diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 510d3a8a791d..8c3cfb7b28ba 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -165,7 +165,7 @@ sal_uInt16 SvMetaClass::WriteSlots( std::string_view rShellName, return nSCount; } -void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector& rSuperList, +void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector& rSuperList, SvMetaClassList &rClassList, const OString& rPrefix, SvIdlDataBase& rBase) { @@ -177,14 +177,14 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector& rClassList.push_back( this ); // write all direct attributes - sal_uLong n; + size_t n; for( n = 0; n < aAttrList.size(); n++ ) { SvMetaAttribute * pAttr = aAttrList[n]; - sal_uLong nId = pAttr->GetSlotId().GetValue(); + sal_uInt32 nId = pAttr->GetSlotId().GetValue(); - std::vector::iterator iter = std::find(rSuperList.begin(), + std::vector::iterator iter = std::find(rSuperList.begin(), rSuperList.end(),nId); if( iter == rSuperList.end() ) @@ -282,7 +282,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm ) rOutStm.WriteCharPtr("static SfxFormalArgument a").WriteOString(GetName()).WriteCharPtr("Args_Impl[] =") << endl; rOutStm.WriteChar('{') << endl; - std::vector aSuperList; + std::vector aSuperList; SvMetaClassList classList; SvSlotElementList aSlotList; InsertSlots(aSlotList, aSuperList, classList, OString(), rBase); diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 17b8970edc8a..7ff190141d6d 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -541,7 +541,7 @@ void SvMetaSlot::WriteSlot( std::string_view rShellName, sal_uInt16 nCount, if( IsMethod() ) { SvMetaType * pType = GetType(); - sal_uLong nSCount = pType->GetAttrCount(); + size_t nSCount = pType->GetAttrCount(); rOutStm .WriteOString( OString::number(nSCount) ) .WriteCharPtr( "/*Count*/," ); diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx index 2c9fbf63d770..a7593c349377 100644 --- a/idl/source/prj/svidl.cxx +++ b/idl/source/prj/svidl.cxx @@ -29,8 +29,8 @@ static bool FileMove_Impl( const OUString & rFile1, const OUString & rFile2, bool bMoveAlways ) { //printf( "Move from %s to %s\n", rFile2.GetStr(), rFile1.GetStr() ); - sal_uLong nC1 = 0; - sal_uLong nC2 = 1; + size_t nC1 = 0; + size_t nC2 = 1; if( !bMoveAlways ) { SvFileStream aOutStm1( rFile1, StreamMode::STD_READ );