mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-14 20:51:41 +08:00
0023373: MSVC++ warnings issued during compilation for 64bits, 'Sparse Arrays'
Replaced 'Standard_Integer' with 'Standard_Size' to avoid compiler warning. Removed redundant casting to 'Standard_Size'. Removed code checking if a 'Standard_Size' variable is negative.
This commit is contained in:
@@ -45,11 +45,11 @@ public:
|
||||
Standard_Size Size () const { return mySize; }
|
||||
|
||||
//! Check whether the value at given index is set
|
||||
Standard_EXPORT Standard_Boolean HasValue (const Standard_Integer theIndex) const;
|
||||
Standard_EXPORT Standard_Boolean HasValue (const Standard_Size theIndex) const;
|
||||
|
||||
//! Deletes the item from the array;
|
||||
//! returns True if that item was defined
|
||||
Standard_EXPORT Standard_Boolean UnsetValue (const Standard_Integer theIndex);
|
||||
Standard_EXPORT Standard_Boolean UnsetValue (const Standard_Size theIndex);
|
||||
|
||||
//!@}
|
||||
|
||||
@@ -231,7 +231,7 @@ protected:
|
||||
}
|
||||
|
||||
//! Direct const access to the item
|
||||
Standard_Address getValue (const Standard_Integer theIndex) const
|
||||
Standard_Address getValue (const Standard_Size theIndex) const
|
||||
{
|
||||
Standard_OutOfRange_Raise_if (!HasValue(theIndex),"NCollection_SparseArray::Value()")
|
||||
return Block::ToArray(myData[theIndex/myBlockSize], myBlockSize, myItemSize) +
|
||||
@@ -239,12 +239,12 @@ protected:
|
||||
}
|
||||
|
||||
//! Set a value to the specified item; returns address of the set item
|
||||
Standard_EXPORT Standard_Address setValue (const Standard_Integer theIndex,
|
||||
Standard_EXPORT Standard_Address setValue (const Standard_Size theIndex,
|
||||
const Standard_Address theValue);
|
||||
|
||||
//! Modification access to the item; allocates necessary space
|
||||
//! and marks the item as defined
|
||||
Standard_EXPORT Standard_Address changeValue (const Standard_Integer theIndex);
|
||||
Standard_EXPORT Standard_Address changeValue (const Standard_Size theIndex);
|
||||
|
||||
//! Copy contents of theOther to this;
|
||||
//! assumes that this and theOther have exactly the same type of arguments
|
||||
|
||||
Reference in New Issue
Block a user